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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ivan Ivlev
bugzilla
Commits
b6ddaf98
Commit
b6ddaf98
authored
Feb 21, 2005
by
bugreport%peshkin.net
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 282790: Warn if name for a stored query exceeds maximum length
patch by LpSolit r=mkanat,a=justdave
parent
30a52319
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
buglist.cgi
buglist.cgi
+1
-0
user-error.html.tmpl
template/en/default/global/user-error.html.tmpl
+4
-0
No files found.
buglist.cgi
View file @
b6ddaf98
...
...
@@ -239,6 +239,7 @@ sub InsertNamedQuery ($$$;$) {
# Validate the query name.
$query_name
||
ThrowUserError
(
"query_name_missing"
);
$query_name
!~
/[<>&]/
||
ThrowUserError
(
"illegal_query_name"
);
(
length
(
$query_name
)
<=
64
)
||
ThrowUserError
(
"query_name_too_long"
);
trick_taint
(
$query_name
);
detaint_natural
(
$userid
);
...
...
template/en/default/global/user-error.html.tmpl
View file @
b6ddaf98
...
...
@@ -862,6 +862,10 @@
[% title = "No Search Name Specified" %]
You must enter a name for your search.
[% ELSIF error == "query_name_too_long" %]
[% title = "Query Name Too Long" %]
The name of the query must be less than 64 characters long.
[% ELSIF error == "quips_disabled" %]
[% title = "Quips Disabled" %]
Quips are disabled.
...
...
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