summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorJoe7 <jozsef.rnagy@site.hu>2011-01-09 14:20:30 +0100
committerBharat Mediratta <bharat@menalto.com>2011-01-09 18:48:24 -0800
commitfca6d1254a2aeb95bee15fea4c503e4588fc9f1b (patch)
treea48e5178e4a4ac6bc436fed9acf6055a607bad3e /modules
parentb7ffb0501e09878b7d95f46a2b678678e0e60fa6 (diff)
Fixed offset sanitizing code - Fixes Ticket#1593
Diffstat (limited to 'modules')
-rw-r--r--modules/tag/controllers/tag.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/tag/controllers/tag.php b/modules/tag/controllers/tag.php
index 7bfa7d58..47110540 100644
--- a/modules/tag/controllers/tag.php
+++ b/modules/tag/controllers/tag.php
@@ -29,9 +29,9 @@ class Tag_Controller extends Controller {
// Make sure that the page references a valid offset
if ($page < 1) {
- url::redirect($album->abs_url());
+ url::redirect(url::merge(array("page" => 1)));
} else if ($page > $max_pages) {
- url::redirect($album->abs_url("page=$max_pages"));
+ url::redirect(url::merge(array("page" => $max_pages)));
}
$template = new Theme_View("page.html", "collection", "tag");