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
1d1c3dca
Commit
1d1c3dca
authored
Apr 25, 2002
by
gerv%gerv.net
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 138456 - use proper error functions in DBNameToIdAndCheck. Patch by gerv; 2xr=myk.
parent
924bcd7f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
20 deletions
+6
-20
globals.pl
globals.pl
+6
-20
No files found.
globals.pl
View file @
1d1c3dca
...
...
@@ -938,30 +938,16 @@ sub DBname_to_id {
sub
DBNameToIdAndCheck
{
my
(
$name
,
$forceok
)
=
(
@_
);
$name
=
html_quote
(
$name
);
my
(
$name
)
=
(
@_
);
my
$result
=
DBname_to_id
(
$name
);
if
(
$result
>
0
)
{
return
$result
;
}
if
(
$forceok
)
{
if
(
ValidateNewUser
(
$name
))
{
InsertNewUser
(
$name
,
""
);
$result
=
DBname_to_id
(
$name
);
if
(
$result
>
0
)
{
return
$result
;
}
}
print
"Yikes; couldn't create user $name. Please report problem to "
.
Param
(
"maintainer"
)
.
"\n"
;
}
else
{
print
"\n"
;
# http://bugzilla.mozilla.org/show_bug.cgi?id=80045
print
"The name <TT>$name</TT> is not a valid username. Either you\n"
;
print
"misspelled it, or the person has not registered for a\n"
;
print
"Bugzilla account.\n"
;
print
"<P>Please hit the <B>Back</B> button and try again.\n"
;
}
exit
(
0
);
$name
=
html_quote
(
$name
);
ThrowUserError
(
"The name <TT>$name</TT> is not a valid username.
Either you misspelled it, or the person has not
registered for a Bugzilla account."
);
}
# Use trick_taint() when you know that there is no way that the data
...
...
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