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
1a848c56
Commit
1a848c56
authored
May 30, 2003
by
Leigh B. Stoller
Browse files
Fix up error message for bad path so as to say something useful!
parent
66f8949f
Changes
1
Hide whitespace changes
Inline
Side-by-side
www/editimageid.php3
View file @
1a848c56
...
...
@@ -81,11 +81,11 @@ if (isset($path) && strcmp($path, "")) {
$pdef
=
"/groups/"
.
$pid
.
"/"
.
$gid
.
"/"
;
}
else
{
$pdef
=
"/proj/"
.
$pid
.
"/
images/
"
;
$pdef
=
"/proj/"
.
$pid
.
"/"
;
}
if
(
strpos
(
$path
,
$pdef
)
===
false
)
{
USERERROR
(
"Invalid path! Must reside in
/proj or /groups.
"
,
1
);
USERERROR
(
"Invalid path! Must reside in
$pdef
"
,
1
);
}
}
$path
=
"'
$path
'"
;
...
...
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