url need to run throught htmlspecialchars too (like every attribute in html markup), eg. "x&reg_id=" fails otherwise

This commit is contained in:
Ralf Becker 2011-08-16 11:45:51 +00:00
parent 709ecc35d7
commit 5ca774e85a

View File

@ -1147,7 +1147,7 @@ class html
$url = self::link($url,$vars); $url = self::link($url,$vars);
} }
//echo "<p>html::a_href('".htmlspecialchars($content)."','$url',".print_r($vars,True).") = ".self::link($url,$vars)."</p>"; //echo "<p>html::a_href('".htmlspecialchars($content)."','$url',".print_r($vars,True).") = ".self::link($url,$vars)."</p>";
return '<a href="'.$url.'" '.$options.'>'.$content.'</a>'; return '<a href="'.htmlspecialchars($url).'" '.$options.'>'.$content.'</a>';
} }
/** /**