diff options
author | friendica <info@friendica.com> | 2012-05-08 22:46:40 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-05-08 22:46:40 -0700 |
commit | 70a07086ad186e3f0cd978dd3f52e78fb92494cf (patch) | |
tree | e74e7d4d0baf59d7922696717604d2447f391597 /include/text.php | |
parent | 89d3ce7b5d57acbeda09eb6b5ae53496133a9d45 (diff) | |
download | volse-hubzilla-70a07086ad186e3f0cd978dd3f52e78fb92494cf.tar.gz volse-hubzilla-70a07086ad186e3f0cd978dd3f52e78fb92494cf.tar.bz2 volse-hubzilla-70a07086ad186e3f0cd978dd3f52e78fb92494cf.zip |
slight improvement in a couple of queries
Diffstat (limited to 'include/text.php')
-rw-r--r-- | include/text.php | 6 |
1 files changed, 6 insertions, 0 deletions
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)); +} + |