Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
d0b82de8
Commit
d0b82de8
authored
Jul 30, 2004
by
bugreport%peshkin.net
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 253447: Fix unhelpful error if user enters text in "blocks" field
r=kiko a=justdave
parent
82357809
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
5 deletions
+3
-5
CGI.pl
CGI.pl
+1
-1
user-error.html.tmpl
template/en/default/global/user-error.html.tmpl
+2
-4
No files found.
CGI.pl
View file @
d0b82de8
...
@@ -157,7 +157,7 @@ sub ValidateBugID {
...
@@ -157,7 +157,7 @@ sub ValidateBugID {
my
$alias
=
$id
;
my
$alias
=
$id
;
if
(
!
detaint_natural
(
$id
))
{
if
(
!
detaint_natural
(
$id
))
{
$id
=
BugAliasToID
(
$alias
);
$id
=
BugAliasToID
(
$alias
);
$id
||
ThrowUserError
(
"invalid_bug_id_or_alias"
,
{
'bug_id'
=>
$
id
});
$id
||
ThrowUserError
(
"invalid_bug_id_or_alias"
,
{
'bug_id'
=>
$
alias
});
}
}
# Modify the calling code's original variable to contain the trimmed,
# Modify the calling code's original variable to contain the trimmed,
...
...
template/en/default/global/user-error.html.tmpl
View file @
d0b82de8
...
@@ -356,15 +356,13 @@
...
@@ -356,15 +356,13 @@
[% ELSIF error == "invalid_bug_id_or_alias" %]
[% ELSIF error == "invalid_bug_id_or_alias" %]
[% title = BLOCK %]Invalid [% terms.Bug %] ID[% END %]
[% title = BLOCK %]Invalid [% terms.Bug %] ID[% END %]
The '[% terms.bug %] number' <em>[% bug_id FILTER html %]</em> is invalid
.
'[% bug_id FILTER html %]' is not a valid [% terms.bug %] number
.
[% IF Param("usebugaliases") %]
[% IF Param("usebugaliases") %]
It is neither [% terms.abug %] number nor an alias to [% terms.abug %]
It is neither [% terms.abug %] number nor an alias to [% terms.abug %]
number.
number.
[% END %]
[% END %]
If you are trying to use QuickSearch, you need to enable JavaScript
If you are trying to use QuickSearch, you need to enable JavaScript
in your browser. To help us fix this limitation, add your comments to
in your browser.
<a href="http://bugzilla.mozilla.org/show_bug.cgi?id=70907">b<!--
word broken up to pass test 009 -->ug 70907</a>.
[% ELSIF error == "invalid_changedsince" %]
[% ELSIF error == "invalid_changedsince" %]
[% title = "Invalid 'Changed Since'" %]
[% title = "Invalid 'Changed Since'" %]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment