diff options
author | Frédéric Buclin <LpSolit@gmail.com> | 2012-11-12 18:46:48 +0100 |
---|---|---|
committer | Frédéric Buclin <LpSolit@gmail.com> | 2012-11-12 18:46:48 +0100 |
commit | 2a6f7d4663dfc5cb00c1bb8b8d8139869a22d461 (patch) | |
tree | 0267c67f18e8099384bc7ae15f58a4459ed71f63 /quips.cgi | |
parent | 34a9d58c4ab24390a21595edc08442651cfbe312 (diff) | |
download | bugs-2a6f7d4663dfc5cb00c1bb8b8d8139869a22d461.tar bugs-2a6f7d4663dfc5cb00c1bb8b8d8139869a22d461.tar.gz bugs-2a6f7d4663dfc5cb00c1bb8b8d8139869a22d461.tar.bz2 bugs-2a6f7d4663dfc5cb00c1bb8b8d8139869a22d461.tar.xz bugs-2a6f7d4663dfc5cb00c1bb8b8d8139869a22d461.zip |
Bug 676844: Replace ThrowCodeError() by ThrowUserError() when the error is not triggered by the code itself
r=glob a=LpSolit
Diffstat (limited to 'quips.cgi')
-rwxr-xr-x | quips.cgi | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -123,8 +123,7 @@ if ($action eq "delete") { action => "delete", object => "quips"}); my $quipid = $cgi->param("quipid"); - ThrowCodeError("need_quipid") unless $quipid =~ /(\d+)/; - $quipid = $1; + detaint_natural($quipid) || ThrowUserError("need_quipid"); check_hash_token($token, ['quips', $quipid]); ($vars->{'deleted_quip'}) = $dbh->selectrow_array( |