summaryrefslogtreecommitdiff
path: root/program/include/rcube_utils.php
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2012-08-12 11:47:45 +0200
committerAleksander Machniak <alec@alec.pl>2012-08-12 11:47:45 +0200
commit413df054ad3235c59c24e897b616c569adc4f67b (patch)
treeb556cc29c8e9d4adf608c349bba53d3d21c51908 /program/include/rcube_utils.php
parenta7b32b61e685d32f8f101a854b6a3ba38d329677 (diff)
CS fixes (mostly tab -> spaces)
Diffstat (limited to 'program/include/rcube_utils.php')
-rw-r--r--program/include/rcube_utils.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/program/include/rcube_utils.php b/program/include/rcube_utils.php
index 9344a929b..d1a8315ec 100644
--- a/program/include/rcube_utils.php
+++ b/program/include/rcube_utils.php
@@ -84,9 +84,9 @@ class rcube_utils
// from PEAR::Validate
$regexp = '&^(?:
- ("\s*(?:[^"\f\n\r\t\v\b\s]+\s*)+")| #1 quoted name
- ([-\w!\#\$%\&\'*+~/^`|{}=]+(?:\.[-\w!\#\$%\&\'*+~/^`|{}=]+)*)) #2 OR dot-atom (RFC5322)
- $&xi';
+ ("\s*(?:[^"\f\n\r\t\v\b\s]+\s*)+")| #1 quoted name
+ ([-\w!\#\$%\&\'*+~/^`|{}=]+(?:\.[-\w!\#\$%\&\'*+~/^`|{}=]+)*)) #2 OR dot-atom (RFC5322)
+ $&xi';
if (!preg_match($regexp, $local_part)) {
return false;
@@ -617,8 +617,8 @@ class rcube_utils
// %n - host
$n = preg_replace('/:\d+$/', '', $_SERVER['SERVER_NAME']);
// %t - host name without first part, e.g. %n=mail.domain.tld, %t=domain.tld
- $t = preg_replace('/^[^\.]+\./', '', $n);
- // %d - domain name without first part
+ $t = preg_replace('/^[^\.]+\./', '', $n);
+ // %d - domain name without first part
$d = preg_replace('/^[^\.]+\./', '', $_SERVER['HTTP_HOST']);
// %h - IMAP host
$h = $_SESSION['storage_host'] ? $_SESSION['storage_host'] : $host;