summaryrefslogtreecommitdiffstats
path: root/lib/general.lib.php
diff options
context:
space:
mode:
authormomo-i <momo-i@ampache>2009-05-27 22:30:05 +0000
committermomo-i <momo-i@ampache>2009-05-27 22:30:05 +0000
commitf7ddaf7f4ca82fc20c8fec474c0f832bd20e658f (patch)
tree35716a589bfa04ef7d3444e44dece0d91eba97bc /lib/general.lib.php
parente3e5fb3510cedefbbc9881824a42cc69acbe8df7 (diff)
downloadampache-f7ddaf7f4ca82fc20c8fec474c0f832bd20e658f.tar.gz
ampache-f7ddaf7f4ca82fc20c8fec474c0f832bd20e658f.tar.bz2
ampache-f7ddaf7f4ca82fc20c8fec474c0f832bd20e658f.zip
fixed #479 if PHP version is 5.3.0 or larger, don't use magic_quotes.
Diffstat (limited to 'lib/general.lib.php')
-rw-r--r--lib/general.lib.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/general.lib.php b/lib/general.lib.php
index 73f488bb..ef776d93 100644
--- a/lib/general.lib.php
+++ b/lib/general.lib.php
@@ -214,7 +214,8 @@ function generate_password($length) {
*/
function scrub_out($str) {
- if (get_magic_quotes_gpc()) {
+ //This feature has been DEPRECATED as of PHP 5.3.0
+ if(version_compare(PHP_VERSION, '5.3.0', '<=') AND get_magic_quotes_gpc()) {
$str = stripslashes($str);
}