Commit 29da8250 authored by Mike Hibler's avatar Mike Hibler

Fix pattern in a preg_match.

parent 7a861f61
<?php
#
# Copyright (c) 2000-2012 University of Utah and the Flux Group.
# Copyright (c) 2000-2013 University of Utah and the Flux Group.
#
# {{{EMULAB-LICENSE
#
......@@ -566,7 +566,7 @@ function VALIDUSERPATH($path, $uid="", $pid="", $gid="", $eid="")
preg_match("#^$TBGROUP_DIR/.*#", $path)) {
return 1;
}
if ($TBSCRATCH_DIR && preg_match("/^$TBSCRATCH_DIR\/.*/", $path)) {
if ($TBSCRATCH_DIR && preg_match("#^$TBSCRATCH_DIR/.*#", $path)) {
return 1;
}
return 0;
......
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