From 2bc73e2e36fefc3c1ee1b8e97e686c6729e58dcb Mon Sep 17 00:00:00 2001 From: Andy Staudacher Date: Mon, 31 Aug 2009 21:51:57 -0700 Subject: Fix XSS vectors in HTML attributes (mostly t() calls) --- modules/gallery/views/permissions_form.html.php | 42 ++++++++++++------------- 1 file changed, 21 insertions(+), 21 deletions(-) (limited to 'modules/gallery/views/permissions_form.html.php') diff --git a/modules/gallery/views/permissions_form.html.php b/modules/gallery/views/permissions_form.html.php index e6b217c5..a0bb35f2 100644 --- a/modules/gallery/views/permissions_form.html.php +++ b/modules/gallery/views/permissions_form.html.php @@ -20,9 +20,9 @@ - <?= t('denied icon') ?> - - <?= t('locked icon') ?> + <?= t('denied icon')->for_html_attr() ?> + + <?= t('locked icon')->for_html_attr() ?> @@ -30,23 +30,23 @@ - <?= t('passive allowed icon') ?> + title="for_html_attr() ?>"> + <?= t('passive allowed icon')->for_html_attr() ?> - <?= t('inactive denied icon') ?> + title="for_html_attr() ?>"> + <?= t('inactive denied icon')->for_html_attr() ?> - <?= t('inactive allowed icon') ?> + title="for_html_attr() ?>"> + <?= t('inactive allowed icon')->for_html_attr() ?> - <?= t('passive denied icon') ?> + title="for_html_attr() ?>"> + <?= t('passive denied icon')->for_html_attr() ?> @@ -54,31 +54,31 @@ - <?= t('inactive allowed icon') ?> + title="for_html_attr() ?>"> + <?= t('inactive allowed icon')->for_html_attr() ?> id == 1): ?> - <?= t('denied icon') ?> + <?= t('denied icon')->for_html_attr() ?> - <?= t('denied icon') ?> + title="for_html_attr() ?>"> + <?= t('denied icon')->for_html_attr() ?> id == 1): ?> - " alt="" /> + for_html_attr() ?>" alt="for_html_attr() ?>" /> - <?= t('allowed icon') ?> + title="for_html_attr() ?>"> + <?= t('allowed icon')->for_html_attr() ?> - <?= t('inactive denied icon') ?> + title="for_html_attr() ?>"> + <?= t('inactive denied icon')->for_html_attr() ?> -- cgit v1.2.3