URLs in href attributes must always be htmlencoded.
authorJan Schneider <jan@horde.org>
Fri, 15 Oct 2010 11:08:32 +0000 (13:08 +0200)
committerJan Schneider <jan@horde.org>
Fri, 15 Oct 2010 11:08:32 +0000 (13:08 +0200)
framework/Url/lib/Horde/Url.php

index 2c6661d..02422fd 100644 (file)
@@ -280,7 +280,7 @@ class Horde_Url
      */
     public function link(array $attributes = array())
     {
-        $url = (string)$this;
+        $url = (string)$this->setRaw(false);
         $link = '<a';
         if (!empty($url)) {
             $link .= " href=\"$url\"";