diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2005-09-21 05:33:39 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2005-09-21 05:33:39 +0000 |
commit | 0c20d2be490f2d81d1f435647b7d8ec623726592 (patch) | |
tree | 902d3fd5845cd867df0c21da45eab514782934f4 /lib | |
parent | 1c18d1528aa5b8f7e659134db4e946af356003d9 (diff) | |
download | ampache-0c20d2be490f2d81d1f435647b7d8ec623726592.tar.gz ampache-0c20d2be490f2d81d1f435647b7d8ec623726592.tar.bz2 ampache-0c20d2be490f2d81d1f435647b7d8ec623726592.zip |
fixed the \ before the quote problem on search, and made it correctly remember your previous search
Diffstat (limited to 'lib')
-rw-r--r-- | lib/general.lib.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/general.lib.php b/lib/general.lib.php index aa8f27a9..b9992be5 100644 --- a/lib/general.lib.php +++ b/lib/general.lib.php @@ -803,6 +803,10 @@ function check_username($username) { */ function scrub_out($str) { + if (get_magic_quotes_gpc()) { + $str = stripslashes($str); + } + $str = htmlentities($str); return $str; |