Escape % in resource prefix used for LIKE queries
This commit is contained in:
parent
bccb7c1417
commit
38d113d413
1 changed files with 1 additions and 1 deletions
|
@ -157,7 +157,7 @@ default:
|
||||||
*/
|
*/
|
||||||
function resource_prefix($opts)
|
function resource_prefix($opts)
|
||||||
{
|
{
|
||||||
return 'imap://' . urlencode($opts['username']) . '@' . $opts['host'] . '/';
|
return 'imap://' . str_replace('%', '\\%', urlencode($opts['username'])) . '@' . $opts['host'] . '/';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue