diff options
Diffstat (limited to 'page.cgi')
-rwxr-xr-x | page.cgi | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -54,13 +54,13 @@ if ($id) { # Be careful not to allow directory traversal. if ($id =~ /\.\./) { # two dots in a row is bad - ThrowCodeError("bad_page_cgi_id", { "page_id" => $id }); + ThrowUserError("bad_page_cgi_id", { "page_id" => $id }); } # Split into name and ctype. $id =~ /^([\w\-\/\.]+)\.(\w+)$/; if (!$2) { # if this regexp fails to match completely, something bad came in - ThrowCodeError("bad_page_cgi_id", { "page_id" => $id }); + ThrowUserError("bad_page_cgi_id", { "page_id" => $id }); } my %vars = ( |