From b102907b51e838c4b51f0bb0acbe1ba5fb4dbb08 Mon Sep 17 00:00:00 2001 From: vdigital Date: Sat, 4 Jul 2009 20:45:14 +0000 Subject: merge r3519 from branch 2.0 to trunk Minor: prevent for non numeric values (except all) git-svn-id: http://piwigo.org/svn/trunk@3520 68402e56-0260-453c-a942-63ccdbb3a9ee --- comments.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/comments.php b/comments.php index d3456c252..3570a6e53 100644 --- a/comments.php +++ b/comments.php @@ -87,6 +87,10 @@ if (isset($_GET['items_number'])) { $page['items_number'] = $_GET['items_number']; } +if ( !is_numeric($page['items_number']) and $page['items_number']!='all' ) +{ + $page['items_number'] = 10; +} $page['where_clauses'] = array(); -- cgit v1.2.3