Browse Source

Fix #315: suppress warning when (failed) SQL injection attempts are made.

George Baugh 1 year ago
parent
commit
b7d12a9d6d
1 changed files with 2 additions and 2 deletions
  1. 2 2
      lib/Trog/Routes/HTML.pm

+ 2 - 2
lib/Trog/Routes/HTML.pm

@@ -1262,8 +1262,8 @@ sub _post_helper ( $query, $tags, $acls ) {
     return $data->get(
         older        => $query->{older},
         newer        => $query->{newer},
-        page         => int( $query->{page} || 1 ),
-        limit        => int( $query->{limit} || 25 ),
+        page         => int( $query->{page} ) || 1,
+        limit        => int( $query->{limit} ) || 25,
         tags         => $tags,
         exclude_tags => $query->{exclude_tags},
         acls         => $acls,