mirror of
https://github.com/samsonjs/mit-license.git
synced 2026-04-27 15:07:42 +00:00
Merge pull request #67 from lindsayevans/master
Escaping HTML characters in user copyright property
This commit is contained in:
commit
6a83677af8
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