diff options
author | rvelices <rv-github@modusoptimus.com> | 2008-10-16 00:09:53 +0000 |
---|---|---|
committer | rvelices <rv-github@modusoptimus.com> | 2008-10-16 00:09:53 +0000 |
commit | 7807d6586a198c75e3d4f72c4b360bee061b817f (patch) | |
tree | 016196aa5d873356140bedc4c959c1ae916a2b5e /comments.php | |
parent | 57a366a7a5d5a08f24a5fb0c00bc12c297221d19 (diff) |
- fix vulnerability http://www.milw0rm.com/exploits/6755
git-svn-id: http://piwigo.org/svn/branches/2.0@2755 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | comments.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/comments.php b/comments.php index 555986328..3db7485c8 100644 --- a/comments.php +++ b/comments.php @@ -65,7 +65,7 @@ $page['since'] = isset($_GET['since']) ? $_GET['since'] : 4; // $page['sort_by'] = 'date'; // if the form was submitted, it overloads default behaviour -if (isset($_GET['sort_by'])) +if (isset($_GET['sort_by']) and isset($sort_by[$_GET['sort_by']]) ) { $page['sort_by'] = $_GET['sort_by']; } @@ -74,7 +74,7 @@ if (isset($_GET['sort_by'])) // $page['sort_order'] = 'DESC'; // if the form was submitted, it overloads default behaviour -if (isset($_GET['sort_order'])) +if (isset($_GET['sort_order']) and isset($sort_order[$_GET['sort_order']])) { $page['sort_order'] = $_GET['sort_order']; } |