Commit 84c90977 authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

Minor fix to regex.

parent 593f492e
......@@ -198,7 +198,7 @@ function Do_GetImageInfo()
$pid = $ajax_args["project"];
if (!preg_match("/^[\w]+$/", $pid)) {
if (!preg_match("/^[-\w]+$/", $pid)) {
SPITAJAX_ERROR(1, "Illegal project name: $pid");
Supports Markdown
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