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
f4d7db71
Commit
f4d7db71
authored
Oct 06, 2001
by
jake%acutex.net
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for bug 57821 - Empty regular expression causes a software error.
Patch by Nick Hibma <n_hibma@qubesoft.com> r= jake@acutex.net
parent
0d14b47f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
editusers.cgi
editusers.cgi
+7
-2
No files found.
editusers.cgi
View file @
f4d7db71
...
...
@@ -292,20 +292,25 @@ List users with login name matching:
if
(
$action
eq
'list'
)
{
PutHeader
(
"Select user"
);
my
$query
=
""
;
my
$matchstr
=
$::FORM
{
'matchstr'
};
if
(
exists
$::FORM
{
'matchtype'
})
{
$query
=
"SELECT login_name,realname,disabledtext "
.
"FROM profiles WHERE login_name "
;
if
(
$::FORM
{
'matchtype'
}
eq
'substr'
)
{
$query
.=
"like"
;
$
::FORM
{
'matchstr'
}
=
'%'
.
$::FORM
{
'matchstr'
}
.
'%'
;
$
matchstr
=
'%'
.
$matchstr
.
'%'
;
}
elsif
(
$::FORM
{
'matchtype'
}
eq
'regexp'
)
{
$query
.=
"regexp"
;
$matchstr
=
'.'
unless
$matchstr
;
}
elsif
(
$::FORM
{
'matchtype'
}
eq
'notregexp'
)
{
$query
.=
"not regexp"
;
$matchstr
=
'.'
unless
$matchstr
;
}
else
{
die
"Unknown match type"
;
}
$query
.=
SqlQuote
(
$
::FORM
{
'matchstr'
}
)
.
" ORDER BY login_name"
;
$query
.=
SqlQuote
(
$
matchstr
)
.
" ORDER BY login_name"
;
}
elsif
(
exists
$::FORM
{
'query'
})
{
$query
=
"SELECT login_name,realname,disabledtext "
.
"FROM profiles WHERE "
.
$::FORM
{
'query'
}
.
" ORDER BY login_name"
;
...
...
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