summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorThomas Bruederli <bruederli@kolabsys.com>2013-10-15 12:11:30 (GMT)
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2013-10-15 14:30:22 (GMT)
commitb894264f50d997a3b442d507a225d707a23f831e (patch)
treedcd4b4b89519e817f65e757e5ecf10d6bd9beb53 /plugins
parentea11b7891a9f0605b0cfa1b8b9793025b0ead9ee (diff)
downloadroundcubemail-plugins-kolab-b894264f50d997a3b442d507a225d707a23f831e.tar.gz
Escape % in resource prefix used for LIKE queries
Diffstat (limited to 'plugins')
-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'] . '/';
}