The branch, master has been updated
via f6a6063850d8b96481174ba2404a43a73b84aaca (commit)
from f60dad172bfb0939a0c165b0988d5b7a2689bc45 (commit)
- Log -----------------------------------------------------------------
commit f6a6063850d8b96481174ba2404a43a73b84aaca
Author: Yuichiro <yuichiro(a)pop07.odn.ne.jp>
Date: Sun Dec 18 16:07:00 2011 +0900
Improved % escape
-----------------------------------------------------------------------
Summary of changes:
libraries/Advisor.class.php | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libraries/Advisor.class.php b/libraries/Advisor.class.php
index 8ef331d..62ba645 100644
--- a/libraries/Advisor.class.php
+++ b/libraries/Advisor.class.php
@@ -112,7 +112,7 @@ class Advisor
*/
function escapePercent($str)
{
- return preg_replace('/%( |,|\.|$)/', '%%\1', $str);
+ return preg_replace('/%( |,|\.|$|\(|\)|<|>)/', '%%\1',
$str);
}
/**
hooks/post-receive
--
phpMyAdmin
Show replies by date