make sure these are Horde_Url objects
authorMichael J. Rubinsky <mrubinsk@horde.org>
Sat, 31 Jul 2010 00:49:25 +0000 (20:49 -0400)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Sat, 31 Jul 2010 00:49:25 +0000 (20:49 -0400)
ansel/faces/savecustom.php
ansel/gallery.php

index ccd6c0a..c093d6b 100644 (file)
@@ -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');
index 1e615a2..7746de3 100644 (file)
@@ -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;