summaryrefslogtreecommitdiff
path: root/plugins/libkolab/bin
diff options
context:
space:
mode:
authorThomas Bruederli <bruederli@kolabsys.com>2013-10-15 12:11:30 (GMT)
committerThomas Bruederli <bruederli@kolabsys.com>2013-10-15 12:11:30 (GMT)
commit38d113d413704b0b1d19e43a759052e53cbacbd5 (patch)
treebcee77ecdcabd8e76d1d6a3c9b2ed08b0fb75a8f /plugins/libkolab/bin
parentbccb7c14177b8efb244d2a828080d239d19af044 (diff)
downloadroundcubemail-plugins-kolab-38d113d413704b0b1d19e43a759052e53cbacbd5.tar.gz
Escape % in resource prefix used for LIKE queries
Diffstat (limited to 'plugins/libkolab/bin')
-rwxr-xr-xplugins/libkolab/bin/modcache.sh2
1 files changed, 1 insertions, 1 deletions
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'] . '/';
}