]> git.mxchange.org Git - friendica.git/commitdiff
The installation prozess has a problem with self signed certificates.
authorMichael Vogel <icarus@dabo.de>
Sat, 13 Jun 2015 19:58:40 +0000 (21:58 +0200)
committerMichael Vogel <icarus@dabo.de>
Sat, 13 Jun 2015 19:58:40 +0000 (21:58 +0200)
mod/install.php

index c6fe7083626a6f177ed676a21b07a27825cdd37e..ed07c4ea6a2192f08b1e00476cf440606d693d90 100755 (executable)
@@ -466,16 +466,19 @@ function check_htaccess(&$checks) {
        $status = true;
        $help = "";
        if (function_exists('curl_init')){
-        $test = fetch_url($a->get_baseurl()."/install/testrewrite");
-        if ($test!="ok") {
-            $status = false;
-            $help = t('Url rewrite in .htaccess is not working. Check your server configuration.');
-        }
-        check_add($checks, t('Url rewrite is working'), $status, true, $help);
-    } else {
-        // cannot check modrewrite if libcurl is not installed
-    }
+               $test = fetch_url($a->get_baseurl()."/install/testrewrite");
 
+               if ($test!="ok")
+                       $test = fetch_url(normalise_link($a->get_baseurl()."/install/testrewrite"));
+
+               if ($test!="ok") {
+                       $status = false;
+                       $help = t('Url rewrite in .htaccess is not working. Check your server configuration.');
+               }
+               check_add($checks, t('Url rewrite is working'), $status, true, $help);
+       } else {
+               // cannot check modrewrite if libcurl is not installed
+       }
 }