From acb5a6ea2d0ae1488fe0e5e6008a8cd1216f55c7 Mon Sep 17 00:00:00 2001 From: Sweil Date: Fri, 9 Apr 2010 15:57:29 +0000 Subject: [PATCH] rc5 - fix for \ bug git-svn-id: http://svn.xp-dev.com/svn/Sweil_fs2/src@217 b49b0359-402e-0410-ad19-9fd90e479030 --- todo.txt | 5 +++++ www/includes/functions.php | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/todo.txt b/todo.txt index 5dad5f3..2a374ba 100644 --- a/todo.txt +++ b/todo.txt @@ -4,6 +4,11 @@ default design noch bearbeiten alix6: +magic quote support einstellen, +wenn magic, dann unquote in savesql +beim rausholen: neu: getsql oder killhtml, was getsql nutzt +getsql = wrapper falls in zukunft was geändert werden muss + noscript.css (special wie import.css) captcha-vorschau diff --git a/www/includes/functions.php b/www/includes/functions.php index d88277f..d40945e 100644 --- a/www/includes/functions.php +++ b/www/includes/functions.php @@ -1184,7 +1184,7 @@ function savesql ( $TEXT ) global $db; if ( !is_numeric ( $TEXT ) ) { - $TEXT = mysql_real_escape_string ( unquote ( $TEXT ), $db ); + $TEXT = mysql_real_escape_string ( addslashes ( unquote ( $TEXT ) ), $db ); } return $TEXT; }