From cbc5f2c6499da9f136b4d747850da23b9ce621b8 Mon Sep 17 00:00:00 2001 From: vdigital Date: Sat, 4 Jul 2009 20:39:58 +0000 Subject: Minor: prevent for non numeric values (except all) git-svn-id: http://piwigo.org/svn/branches/2.0@3519 68402e56-0260-453c-a942-63ccdbb3a9ee --- comments.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/comments.php b/comments.php index e886a6e11..a71838713 100644 --- a/comments.php +++ b/comments.php @@ -86,6 +86,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