Changeset 185 for trunk/lib


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

Location:
trunk/lib
Files:
3 edited

Legend:

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

    r149 r185  
    365365
    366366        ?>
    367         <form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
     367        <form method="post" action="<?php echo oTxt($_SERVER['PHP_SELF']); ?>">
    368368        <?php $app->printHiddenSession() ?>
    369369        <input type="hidden" name="lock_id" value="<?php echo $this->getID(); ?>" />
  • trunk/lib/Navigation.inc.php

    r184 r185  
    1818    // Configuration parameters for this object.
    1919    var $_params = array(       
    20         'html_title' = true,
    21         'body_title' = true,
     20        'head_title' => true,
     21        'body_title' => true,
    2222        'title' => true,
    2323        'path' => true,
     
    5858        $page = array(
    5959            'title' => $title,
    60             'url' => is_null($url) ? $_SERVER['PHP_SELF'] : $url;
     60            'url' => is_null($url) ? $_SERVER['PHP_SELF'] : $url,
    6161        );
    6262        $this->pages[] = array_merge($page, $vars);
  • 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.