mirror of
https://github.com/samsonjs/mit-license.git
synced 2026-03-29 10:05:49 +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)) {
|
||||
$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>';
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue