Commit 1a848c56 authored by Leigh B. Stoller's avatar Leigh B. Stoller
Browse files

Fix up error message for bad path so as to say something useful!

parent 66f8949f
......@@ -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'";
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment