Escaping HTML characters in user copyright property

This commit is contained in:
Lindsay Evans 2011-10-20 08:51:31 +11:00
parent 3474a342a7
commit a9efe6b526

View file

@ -13,7 +13,7 @@
if (file_exists($user_file)) {
$user = json_decode(file_get_contents($user_file));
$holder = $user->copyright;
$holder = htmlentities($user->copyright);
if (property_exists($user, 'url')) {
$holder = '<a href="'.$user->url.'">' . $holder . '</a>';
}