summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authorPhil Sturgeon <email@philsturgeon.co.uk>2010-12-15 11:52:37 +0100
committerPhil Sturgeon <email@philsturgeon.co.uk>2010-12-15 11:52:37 +0100
commitfd6948997faf5f064f76353da65bd1d0ec65ec51 (patch)
treeec822d0f35626cbb24612fbcdd1fcf890f01f851 /system
parent9a311fd3c45faadb7081a48b068f07c0f44b9e5e (diff)
Potential PHP 5.4 issue, get_magic_quotes_gpc() is being removed. This change will check the function exists before calling it in Input.
Diffstat (limited to 'system')
-rw-r--r--system/core/Input.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/core/Input.php b/system/core/Input.php
index 9d8811cdd..5a227332c 100644
--- a/system/core/Input.php
+++ b/system/core/Input.php
@@ -492,7 +492,7 @@ class CI_Input {
}
// We strip slashes if magic quotes is on to keep things consistent
- if (get_magic_quotes_gpc())
+ if (function_exists('get_magic_quotes_gpc') AND get_magic_quotes_gpc())
{
$str = stripslashes($str);
}