mirror of
https://github.com/samsonjs/mit-license.git
synced 2026-04-27 15:07:42 +00:00
Escaping HTML characters in user copyright property
This commit is contained in:
parent
3474a342a7
commit
a9efe6b526
1 changed files with 1 additions and 1 deletions
|
|
@ -13,7 +13,7 @@
|
||||||
|
|
||||||
if (file_exists($user_file)) {
|
if (file_exists($user_file)) {
|
||||||
$user = json_decode(file_get_contents($user_file));
|
$user = json_decode(file_get_contents($user_file));
|
||||||
$holder = $user->copyright;
|
$holder = htmlentities($user->copyright);
|
||||||
if (property_exists($user, 'url')) {
|
if (property_exists($user, 'url')) {
|
||||||
$holder = '<a href="'.$user->url.'">' . $holder . '</a>';
|
$holder = '<a href="'.$user->url.'">' . $holder . '</a>';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue