1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 15:55:56 +00:00

make sure magic quote workaround actually works

This commit is contained in:
Andrew Dolgov
2010-09-07 13:22:10 +04:00
parent 84c7b824fb
commit 5fa173729e

View File

@@ -3,7 +3,7 @@
/* remove ill effects of magic quotes */
if (!get_magic_quotes_gpc()) {
if (get_magic_quotes_gpc()) {
function stripslashes_deep($value) {
$value = is_array($value) ?
array_map('stripslashes_deep', $value) : stripslashes($value);