Make sure this is a Horde_Url.
authorJan Schneider <jan@horde.org>
Wed, 9 Dec 2009 14:21:43 +0000 (15:21 +0100)
committerJan Schneider <jan@horde.org>
Wed, 9 Dec 2009 14:21:43 +0000 (15:21 +0100)
kronolith/new.php

index eb2c756..d09ec14 100644 (file)
@@ -56,7 +56,7 @@ $year = $event->start->year;
 $buttons = array('<input type="submit" class="button" name="save" value="' . _("Save Event") . '" />');
 $url = Horde_Util::getFormData('url');
 if (isset($url)) {
-    $cancelurl = $url;
+    $cancelurl = new Horde_Url($url);
 } else {
     $cancelurl = Horde::applicationUrl('month.php', true)->add('month', $month);
 }