Ignore:
Timestamp:
Jun 24, 2006 11:02:54 PM (18 years ago)
Author:
scdev
Message:

Q - added oTxt() around all printed PHP_SELFs to avoid XSS attack. See: http://blog.phpdoc.info/archives/13-XSS-Woes.html

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/PEdit.inc.php

    r146 r185  
    228228        }
    229229        ?>       
    230         <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" id="sc-pedit-form">
    231         <input type="hidden" name="filename" value="<?php echo $_SERVER['PHP_SELF']; ?>" />
     230        <form action="<?php echo oTxt($_SERVER['PHP_SELF']); ?>" method="post" id="sc-pedit-form">
     231        <input type="hidden" name="filename" value="<?php echo oTxt($_SERVER['PHP_SELF']); ?>" />
    232232        <input type="hidden" name="file_hash" value="<?php echo $this->_fileHash(); ?>" />
    233233        <?php
Note: See TracChangeset for help on using the changeset viewer.