From 70a07086ad186e3f0cd978dd3f52e78fb92494cf Mon Sep 17 00:00:00 2001 From: friendica Date: Tue, 8 May 2012 22:46:40 -0700 Subject: slight improvement in a couple of queries --- include/text.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include') diff --git a/include/text.php b/include/text.php index 1b5b0afd4..e3c683338 100644 --- a/include/text.php +++ b/include/text.php @@ -1524,3 +1524,9 @@ function fix_mce_lf($s) { $s = str_replace("\n\n","\n",$s); return $s; } + + +function protect_sprintf($s) { + return(str_replace('%','%%',$s)); +} + -- cgit v1.2.3