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
72a25ca7
Commit
72a25ca7
authored
Jan 20, 2000
by
terry%mozilla.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Let's outlaw whitespace in keywords.
parent
17fc03c8
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
editkeywords.cgi
editkeywords.cgi
+2
-2
sanitycheck.cgi
sanitycheck.cgi
+1
-1
No files found.
editkeywords.cgi
View file @
72a25ca7
...
@@ -88,8 +88,8 @@ sub Validate ($$) {
...
@@ -88,8 +88,8 @@ sub Validate ($$) {
PutTrailer
(
$localtrailer
);
PutTrailer
(
$localtrailer
);
exit
;
exit
;
}
}
if
(
$name
=~
/
,
/
)
{
if
(
$name
=~
/
[\s,]
/
)
{
print
"You may not use commas in a keyword name.\n"
;
print
"You may not use commas
or whitespace
in a keyword name.\n"
;
print
"Please press <b>Back</b> and try again.\n"
;
print
"Please press <b>Back</b> and try again.\n"
;
PutTrailer
(
$localtrailer
);
PutTrailer
(
$localtrailer
);
exit
;
exit
;
...
...
sanitycheck.cgi
View file @
72a25ca7
...
@@ -234,7 +234,7 @@ while (@row = FetchSQLData()) {
...
@@ -234,7 +234,7 @@ while (@row = FetchSQLData()) {
Alert
(
"Duplicate entry in keyworddefs for id $id"
);
Alert
(
"Duplicate entry in keyworddefs for id $id"
);
}
}
$keywordids
{
$id
}
=
1
;
$keywordids
{
$id
}
=
1
;
if
(
$name
=~
/
,/
||
$name
=~
/^\s/
||
$name
=~
/\s$
/
)
{
if
(
$name
=~
/
[\s,]
/
)
{
Alert
(
"Bogus name in keyworddefs for id $id"
);
Alert
(
"Bogus name in keyworddefs for id $id"
);
}
}
}
}
...
...
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