Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
06a6404c
Commit
06a6404c
authored
Apr 21, 2012
by
Leigh B Stoller
Browse files
Minor bug fix; use is_numeric() for PAGEARG_INTEGER.
parent
92cecdca
Changes
1
Hide whitespace changes
Inline
Side-by-side
www/url_defs.php
View file @
06a6404c
...
...
@@ -709,7 +709,6 @@ function ValidateArgument($name, $arg)
PAGEARGERROR
(
"Invalid argument for '
$name
':
$arg
"
);
break
;
case
PAGEARG_INTEGER
:
case
PAGEARG_GUID
:
case
PAGEARG_VERS
:
case
PAGEARG_INSTANCE
:
...
...
@@ -726,6 +725,7 @@ function ValidateArgument($name, $arg)
PAGEARGERROR
(
"Invalid argument for '
$name
':
$arg
"
);
break
;
case
PAGEARG_INTEGER
:
case
PAGEARG_NUMERIC
:
if
(
is_numeric
(
$arg
))
{
return
1
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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