[pLog-svn] r5859 - plog/branches/lifetype-1.2/class/net
jondaley at devel.lifetype.net
jondaley at devel.lifetype.net
Wed Aug 22 16:44:23 EDT 2007
Author: jondaley
Date: 2007-08-22 16:44:22 -0400 (Wed, 22 Aug 2007)
New Revision: 5859
Modified:
plog/branches/lifetype-1.2/class/net/request.class.php
Log:
removed unused code
Modified: plog/branches/lifetype-1.2/class/net/request.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/net/request.class.php 2007-08-22 20:31:42 UTC (rev 5858)
+++ plog/branches/lifetype-1.2/class/net/request.class.php 2007-08-22 20:44:22 UTC (rev 5859)
@@ -24,7 +24,6 @@
{
var $_paramsRaw;
- var $_stripSlashes;
/**
* Initializes the request object
@@ -37,21 +36,9 @@
$this->Properties();
else
$this->Properties( $values );
-
- $this->_stripSlashes = true;
}
/**
- * whether parameters should or should not be unescaped automatically
- *
- * @param escape
- */
- function setStripSlashes( $enabled )
- {
- $this->_stripSlashes = $enabled;
- }
-
- /**
* reimplemented from Properties::getValue() so that we can correctly
* strip slashes from requests where magic_quotes_gpc was enabled
*
@@ -65,9 +52,9 @@
// get the value from the parent
$value = parent::getValue( $key, $defaultValue, $filterClass );
- // now if magic quotes are enabled and the input parameter is not an array
- // and the feature has not been disabled, then strip the slashes
- if( get_magic_quotes_gpc() && !is_array( $value ) && $this->_stripSlashes ) {
+ // if magic quotes are enabled and the input parameter is not an array
+ // then strip the slashes
+ if( get_magic_quotes_gpc() && !is_array( $value )) {
$value = stripslashes( $value );
}
More information about the pLog-svn
mailing list