Commit 47220dba authored by Leigh Stoller's avatar Leigh Stoller

Minor fix to urn regex.

parent 1fd2005b
......@@ -111,11 +111,11 @@ if (1) {
if (preg_match("/^\w+\-\w+\-\w+\-\w+\-\w+$/", $searchfor)) {
$clause = "$clause and a.slice_uuid='$safe_searchfor' ";
}
elseif (preg_match("/^urn:publicid:IDN\+[-\w\.]+\+slice\+[-\w]*$/",
elseif (preg_match("/^urn:publicid:IDN\+[-\w\.:]+\+slice\+[-\w]*$/",
$searchfor)) {
$clause = "$clause and a.slice_urn='$safe_searchfor' ";
}
elseif (preg_match("/^urn:publicid:IDN\+[-\w\.]+\+user\+[-\w]*$/",
elseif (preg_match("/^urn:publicid:IDN\+[-\w\.:]+\+user\+[-\w]*$/",
$searchfor)) {
$clause = "$clause and a.creator_urn='$safe_searchfor' ";
}
......
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