Annotation of pkgsrc/databases/phpldapadmin/patches/patch-lib_QueryRender.php, revision 1.2.2.2

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

CVSweb <webmaster@jp.NetBSD.org>