From 969704e2f13dfbfe6f1ab2e2aeb7c054950fe104 Mon Sep 17 00:00:00 2001 From: "Michael J. Rubinsky" Date: Fri, 30 Jul 2010 20:49:25 -0400 Subject: [PATCH] make sure these are Horde_Url objects --- ansel/faces/savecustom.php | 2 +- ansel/gallery.php | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ansel/faces/savecustom.php b/ansel/faces/savecustom.php index ccd6c0a71..c093d6bf7 100644 --- a/ansel/faces/savecustom.php +++ b/ansel/faces/savecustom.php @@ -23,7 +23,7 @@ $back_url = empty($url) ? Horde::applicationUrl('faces/gallery.php')->add( array('gallery' => $gallery_id, 'page' => $page))->setRaw(true) - : $url; + : new Horde_Url($url); if (Horde_Util::getPost('submit') == _("Cancel")) { $notification->push(_("Changes cancelled."), 'horde.warning'); diff --git a/ansel/gallery.php b/ansel/gallery.php index 1e615a2b4..7746de360 100644 --- a/ansel/gallery.php +++ b/ansel/gallery.php @@ -288,6 +288,8 @@ case 'save': $url = Horde::applicationUrl('img/upload.php')->add('gallery', $galleryId); } elseif (empty($url)) { $url = Horde::applicationUrl('index.php', true); + } else { + $url = new Horde_Url($url); } $url->redirect(); exit; -- 2.11.0