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:44:33 +00:00
parent 8996f45e9e
commit 697a113171

View File

@ -1061,7 +1061,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>';
}
/**