Introduced detectServerProtocol() to fully support HTTPS and more use of isFullQualif...
[mailer.git] / inc / install-functions.php
index 7c205e24813a08aaeeab28960fff1b17a251122e..a0ac6850a6ff8d6affeb9fab5e7530d341572915 100644 (file)
@@ -474,7 +474,7 @@ function isInstallerBaseUrlValid ($value) {
                ($value == getUrl())
        || (
                // Starts with http:// or https:// ?
-               ((substr($value, 0, 7) == 'http://') || (substr($value, 0, 8) == 'https://'))
+               (isFullQualifiedUrl($value))
        &&
                // Has no trailing slash?
                (substr($value, -1, 1) != '/')