Commit a7fded2a authored by Leigh B Stoller's avatar Leigh B Stoller

Fix up the regex that was testing the search phrase.

This closes issue #131.
parent 0a58f581
......@@ -1327,6 +1327,10 @@ sub HandleImageTracking()
print "Would trigger update for $image\n";
next;
}
if ($image->isdataset()) {
print "Skipping dataset for now\n";
next;
}
#
# Lets avoid needless errors cause the image is locked, take the
......
......@@ -61,7 +61,7 @@ function Do_SearchUsers()
return -1;
}
$text = $ajax_args["text"];
if (!preg_match("/^\w*$/", $text)) {
if (!preg_match("/^[\.\@\w]*$/", $text)) {
SPITAJAX_ERROR(-1, "Illegal text to search for");
return -1;
}
......
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