From 707d3a9b03b9032b460731b06f5cd40fc49b62a2 Mon Sep 17 00:00:00 2001 From: Matt Pass Date: Mon, 5 Sep 2016 08:56:12 +0100 Subject: [PATCH] Removing php.ini Caused blank page issue for a few people - turning magic quotes off in code is OK --- lib/php.ini | 1 - lib/settings-common.php | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) delete mode 100644 lib/php.ini diff --git a/lib/php.ini b/lib/php.ini deleted file mode 100644 index 702ced9..0000000 --- a/lib/php.ini +++ /dev/null @@ -1 +0,0 @@ -magic_quotes_gpc = Off \ No newline at end of file diff --git a/lib/settings-common.php b/lib/settings-common.php index 0318ff8..3e1c49b 100644 --- a/lib/settings-common.php +++ b/lib/settings-common.php @@ -89,7 +89,7 @@ if (isset($_GET['logout'])) { die("Logging you out..."); } -// If magic quotes are still on (attempted to switch off in php.ini) +// If magic quotes are still on if (get_magic_quotes_gpc ()) { function stripslashes_deep($value) { $value = is_array($value) ? array_map('stripslashes_deep', $value) : stripslashes($value);