mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-07-28 18:53:58 -04:00
Fix XSS vectors in HTML attributes (mostly t() calls)
This commit is contained in:
@@ -2,9 +2,9 @@
|
||||
<ul>
|
||||
<? foreach ($photos as $photo): ?>
|
||||
<li class="gItem gPhoto">
|
||||
<a href="<?= url::site("photos/$photo->id") ?>" title="<?= html::clean($photo->title) ?>">
|
||||
<a href="<?= url::site("photos/$photo->id") ?>" title="<?= html::purify($photo->title)->for_html_attr() ?>">
|
||||
<img <?= photo::img_dimensions($photo->width, $photo->height, 72) ?>
|
||||
src="<?= $photo->thumb_url() ?>" alt="<?= html::clean($photo->title) ?>" />
|
||||
src="<?= $photo->thumb_url() ?>" alt="<?= html::purify($photo->title)->for_html_attr() ?>" />
|
||||
</a>
|
||||
</li>
|
||||
<? endforeach ?>
|
||||
|
||||
Reference in New Issue
Block a user