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
1ade641d
Commit
1ade641d
authored
Jul 10, 2004
by
bugreport%peshkin.net
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 236650: html_quote and validate email addresses in editueser.cgi
patch by vlad r=joel,justdave a=justdave
parent
386cc09b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
editusers.cgi
editusers.cgi
+9
-1
No files found.
editusers.cgi
View file @
1ade641d
...
...
@@ -357,7 +357,7 @@ if ($action eq 'list') {
}
$realname
=
(
$realname
?
html_quote
(
$realname
)
:
"<FONT COLOR=\"red\">missing</FONT>"
);
print
"<TR>\n"
;
print
" <TD VALIGN=\"top\"><A HREF=\"editusers.cgi?action=edit&user="
,
url_quote
(
$user
),
"\"><B>$s
$user
$e</B></A></TD>\n"
;
print
" <TD VALIGN=\"top\"><A HREF=\"editusers.cgi?action=edit&user="
,
url_quote
(
$user
),
"\"><B>$s
"
,
html_quote
(
$user
),
"
$e</B></A></TD>\n"
;
print
" <TD VALIGN=\"top\">$s$realname$e</TD>\n"
;
if
(
$candelete
)
{
print
" <TD VALIGN=\"top\"><A HREF=\"editusers.cgi?action=del&user="
,
url_quote
(
$user
),
"\">Delete</A></TD>\n"
;
...
...
@@ -749,6 +749,14 @@ if ($action eq 'update') {
WHERE login_name="
.
SqlQuote
(
$userold
));
my
(
$thisuserid
)
=
FetchSQLData
();
my
$emailregexp
=
Param
(
"emailregexp"
);
unless
(
$user
=~
m/$emailregexp/
)
{
print
"The user name entered must be a valid e-mail address. Please press\n"
;
print
"<b>Back</b> and try again.\n"
;
PutTrailer
(
$localtrailer
);
exit
;
}
my
@grpadd
=
();
my
@grpdel
=
();
my
$chggrp
=
0
;
...
...
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