View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0004867 | OXID eShop (all versions) | 4.07. Source code, Test | public | 2013-01-23 09:04 | 2023-11-17 13:55 |
| Reporter | united20 | Assigned To | |||
| Priority | normal | Severity | tweak | Reproducibility | always |
| Status | closed | Resolution | won't fix | ||
| Summary | 0004867: Trim whitespaces in oxConfig::checkParamSpecialChars() | ||||
| Description | In some cases it is usefull to trim all whitespaces in oxConfig::checkParamSpecialChars() | ||||
| Additional Information | Modified code: public function checkParamSpecialChars( & $sValue, $aRaw = null ) { if ( is_object( $sValue ) ) { return $sValue; } if ( is_array( $sValue ) ) { $newValue = array(); foreach ( $sValue as $sKey => $sVal ) { $sValidKey = $sKey; if ( !$aRaw || !in_array($sKey, $aRaw) ) { $this->checkParamSpecialChars( $sValidKey ); $this->checkParamSpecialChars( $sVal ); if ($sValidKey != $sKey) { unset ($sValue[$sKey]); } } $newValue[$sValidKey] = trim( $sVal ); } $sValue = $newValue; } elseif ( is_string( $sValue ) ) { $sValue = str_replace( array( '&', '<', '>', '"', "'", chr(0), '\\' ), array( '&', '<', '>', '"', ''', '', '\' ), trim( $sValue ) ); } return $sValue; } | ||||
| Tags | No tags attached. | ||||
| Theme | Not defined | ||||
| Browser | All | ||||
| PHP Version | Not defined | ||||
| Database Version | Not defined | ||||