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:23 +00:00
parent 3ecb55ad78
commit e04a1d8519

View File

@ -1059,7 +1059,7 @@ class html
$url = self::link($url,$vars);
}
//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>';
}
/**