From f1adbf17eeaefa0f9977f18de9f085d25368c660 Mon Sep 17 00:00:00 2001
From: alecpl <alec@alec.pl>
Date: Mon, 04 Oct 2010 03:03:00 -0400
Subject: [PATCH] - Convert IDN to ASCII before using rcube_user::query() - Always convert to lower case a username when it's an email address
---
program/include/rcube_string_replacer.php | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/program/include/rcube_string_replacer.php b/program/include/rcube_string_replacer.php
index 962ea04..1eed1bf 100644
--- a/program/include/rcube_string_replacer.php
+++ b/program/include/rcube_string_replacer.php
@@ -42,6 +42,7 @@
$this->mailto_pattern = "/("
."[-\w!\#\$%&\'*+~\/^`|{}=]+(?:\.[-\w!\#\$%&\'*+~\/^`|{}=]+)*" // local-part
."@([a-z0-9]([-a-z0-9]*[a-z0-9])?\\.)+[a-z]{2,5}" // domain-part
+ ."(\?\S+)?" // e.g. ?subject=test...
.")/i";
}
--
Gitblit v1.9.1