Changeset 451
- Timestamp:
- 07/15/06 03:59:32 (2 years ago)
- Files:
-
- devel/lib/elgglib.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
devel/lib/elgglib.php
r439 r451 136 136 137 137 if ($options & PARAM_CLEAN) { 138 $param = stripslashes($param); // Needed by kses to work fine 138 // this breaks backslashes in user input 139 // $param = stripslashes($param); // Needed by kses to work fine 139 140 $param = clean_text($param); // Sweep for scripts, etc 140 $param = addslashes($param); // Restore original request parameter slashes 141 // and this unnecessarily escapes quotes, etc in user input 142 // $param = addslashes($param); // Restore original request parameter slashes 141 143 } 142 144 … … 270 272 271 273 if ($options & PARAM_CLEANHTML) { 272 $param = stripslashes($param); // Remove any slashes274 // $param = stripslashes($param); // Remove any slashes 273 275 $param = clean_text($param); // Sweep for scripts, etc 274 $param = trim($param); // Sweep for scripts, etc276 // $param = trim($param); // Sweep for scripts, etc 275 277 } 276 278
