diff options
author | friendica <info@friendica.com> | 2013-05-15 18:35:16 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-05-15 18:35:16 -0700 |
commit | 02bd65ba4b19877e7676e7ed24099c4f4d953e42 (patch) | |
tree | 3b56eda3d30a86d646cf00957b12bfc50792d7cb /mod/setup.php | |
parent | fece1675d39d2d4a060c1bd87f2b8023e89c5df4 (diff) | |
download | volse-hubzilla-02bd65ba4b19877e7676e7ed24099c4f4d953e42.tar.gz volse-hubzilla-02bd65ba4b19877e7676e7ed24099c4f4d953e42.tar.bz2 volse-hubzilla-02bd65ba4b19877e7676e7ed24099c4f4d953e42.zip |
add certificate check to setup
Diffstat (limited to 'mod/setup.php')
-rwxr-xr-x | mod/setup.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/mod/setup.php b/mod/setup.php index 1c3620523..7831ce0b6 100755 --- a/mod/setup.php +++ b/mod/setup.php @@ -474,6 +474,15 @@ function check_htaccess(&$checks) { $help = ""; if (function_exists('curl_init')){ $test = z_fetch_url($a->get_baseurl()."/setup/testrewrite"); + if(! $test['success']) { + if(strstr($a->get_baseurl(),'https://')) { + $test = z_fetch_url($a->get_baseurl() . "/setup/testrewrite",false,0,array('novalidate' => true)); + if($test['success']) { + check_add($checks, t('SSL certificate validation'),false,true, t('SSL certificate cannot be validated. Fix certificate or disable https access to this site.')); + } + } + } + if ((! $test['success']) || ($test['body'] != "ok")) { $status = false; $help = t('Url rewrite in .htaccess is not working. Check your server configuration.'); |