removed magic_quotes_gpc :D
This commit is contained in:
parent
2b542e58d0
commit
5e5957cca1
|
@ -23,14 +23,6 @@ $layout['controller'] = $layout['view'] = $layout['slug'] = empty($explodeSlug[0
|
||||||
unset($explodeSlug[0]);
|
unset($explodeSlug[0]);
|
||||||
$layout['parameters'] = implode('/', $explodeSlug);
|
$layout['parameters'] = implode('/', $explodeSlug);
|
||||||
|
|
||||||
// Disable Magic Quotes.
|
|
||||||
// Thanks, http://stackoverflow.com/questions/517008/how-to-turn-off-magic-quotes-on-shared-hosting
|
|
||||||
if ( in_array( strtolower( ini_get( 'magic_quotes_gpc' ) ), array( '1', 'on' ) ) ) {
|
|
||||||
$_POST = array_map('stripslashes', $_POST);
|
|
||||||
$_GET = array_map('stripslashes', $_GET);
|
|
||||||
$_COOKIE = array_map('stripslashes', $_COOKIE);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Boot plugins rules
|
// Boot plugins rules
|
||||||
include(PATH_RULES.'60.plugins.php');
|
include(PATH_RULES.'60.plugins.php');
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue