Skip to content
This repository has been archived by the owner on Mar 10, 2024. It is now read-only.

Commit

Permalink
Remove magic quotes.
Browse files Browse the repository at this point in the history
  • Loading branch information
phillf committed Jul 11, 2021
1 parent 357855a commit 7e56153
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions oc-install/include/shared.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,3 @@ function generateRandomString2($length = 10) {
}
return $randomString;
}

// *** disabling magic quotes at runtime
if(get_magic_quotes_gpc()){
function stripslashes_gpc(&$value) {
$value = stripslashes($value);
}
array_walk_recursive($_GET, 'stripslashes_gpc');
array_walk_recursive($_POST, 'stripslashes_gpc');
array_walk_recursive($_COOKIE, 'stripslashes_gpc');
if(is_array($_REQUEST)) array_walk_recursive($_REQUEST, 'stripslashes_gpc');
}

0 comments on commit 7e56153

Please sign in to comment.