From: Michael J. Rubinsky Date: Sat, 31 Jul 2010 00:49:25 +0000 (-0400) Subject: make sure these are Horde_Url objects X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=969704e2f13dfbfe6f1ab2e2aeb7c054950fe104;p=horde.git make sure these are Horde_Url objects --- 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;