Branch 'dev/kolab-cache-refactoring' - plugins/libkolab

Thomas Brüderli bruederli at kolabsys.com
Tue Oct 15 14:11:46 CEST 2013


 plugins/libkolab/bin/modcache.sh |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 38d113d413704b0b1d19e43a759052e53cbacbd5
Author: Thomas Bruederli <bruederli at kolabsys.com>
Date:   Tue Oct 15 14:11:30 2013 +0200

    Escape % in resource prefix used for LIKE queries

diff --git a/plugins/libkolab/bin/modcache.sh b/plugins/libkolab/bin/modcache.sh
index 9285ec7..da6e4f8 100755
--- a/plugins/libkolab/bin/modcache.sh
+++ b/plugins/libkolab/bin/modcache.sh
@@ -157,7 +157,7 @@ default:
  */
 function resource_prefix($opts)
 {
-    return 'imap://' . urlencode($opts['username']) . '@' . $opts['host'] . '/';
+    return 'imap://' . str_replace('%', '\\%', urlencode($opts['username'])) . '@' . $opts['host'] . '/';
 }
 
 




More information about the commits mailing list