Commit e9cb4a3f authored by Mike Hibler's avatar Mike Hibler

Oops, mind yer slashes!

parent 9007d758
...@@ -532,9 +532,9 @@ function VALIDUSERPATH($path, $uid="", $pid="", $gid="", $eid="") ...@@ -532,9 +532,9 @@ function VALIDUSERPATH($path, $uid="", $pid="", $gid="", $eid="")
# No ids specified, just make sure it starts with an appropriate prefix. # No ids specified, just make sure it starts with an appropriate prefix.
# #
if (!$uid && !$pid && !$gid && !$eid) { if (!$uid && !$pid && !$gid && !$eid) {
if (preg_match("/^$TBPROJ_DIR\/.*/", $path) || if (preg_match("#^$TBPROJ_DIR/.*#", $path) ||
preg_match("/^$TBUSER_DIR\/.*/", $path) || preg_match("#^$TBUSER_DIR/.*#", $path) ||
preg_match("/^$TBGROUP_DIR\/.*/", $path)) { preg_match("#^$TBGROUP_DIR/.*#", $path)) {
return 1; return 1;
} }
if ($TBSCRATCH_DIR && preg_match("/^$TBSCRATCH_DIR\/.*/", $path)) { if ($TBSCRATCH_DIR && preg_match("/^$TBSCRATCH_DIR\/.*/", $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