Aleksander Machniak
2016-02-03 e91c35c5344a018804b2f76527c90bc8d3c34f88
program/lib/Roundcube/rcube.php
@@ -1287,7 +1287,7 @@
                if (!empty($post_query)) {
                    $post_query = (strpos($_SERVER['REQUEST_URI'], '?') != false ? '&' : '?')
                        . http_build_query($post_query);
                        . http_build_query($post_query, '', '&');
                }
            }
@@ -1500,6 +1500,7 @@
                $host = preg_replace('/:[0-9]+$/', '', $host);
                if ($host && preg_match('/\.[a-z]+$/i', $host)) {
                    $domain_part = $host;
                    break;
                }
            }
        }