Annotation of pkgsrc/databases/phpldapadmin/patches/patch-lib_QueryRender.php, revision 1.1
1.1 ! taca 1: $NetBSD$
! 2:
! 3: o Fix XSS in query from repository, 7dc8d57d6952fe681cb9e8818df7f103220457bd.
! 4:
! 5: --- lib/QueryRender.php.orig 2011-10-27 02:07:09.000000000 +0000
! 6: +++ lib/QueryRender.php
! 7: @@ -497,7 +497,7 @@ class QueryRender extends PageRender {
! 8: $this->getAjaxRef($base),
! 9: $this->getAjaxRef($base),
! 10: ($show == $this->getAjaxRef($base) ? '#F0F0F0' : '#E0E0E0'),
! 11: - $base);
! 12: + htmlspecialchars($base));
! 13: }
! 14: echo '</tr>';
! 15: echo '</table>';
! 16: @@ -545,7 +545,7 @@ class QueryRender extends PageRender {
! 17: echo ' ]</small>';
! 18:
! 19: echo '<br />';
! 20: - printf('<small>%s: <b>%s</b></small>',_('Base DN'),$base);
! 21: + printf('<small>%s: <b>%s</b></small>',_('Base DN'), htmlspecialchars($base));
! 22:
! 23: echo '<br />';
! 24: printf('<small>%s: <b>%s</b></small>',_('Filter performed'),htmlspecialchars($this->template->resultsdata[$base]['filter']));
CVSweb <webmaster@jp.NetBSD.org>