Commit 3a1f4ac0 authored by Jonathon Duerig's avatar Jonathon Duerig

Make pid comparison case insensitive for image permissions check.

parent 84e63b54
...@@ -347,7 +347,7 @@ function Do_GetImageInfo() ...@@ -347,7 +347,7 @@ function Do_GetImageInfo()
# #
list ($auth) = Instance::ParseURN($row["project_urn"]); list ($auth) = Instance::ParseURN($row["project_urn"]);
list ($domain,$impid) = preg_split('/:/', $auth); list ($domain,$impid) = preg_split('/:/', $auth);
if ($impid && $impid == $pid) { if ($impid && strtolower($impid) == strtolower($pid)) {
goto allowed; goto allowed;
} }
......
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