diff options
author | Andreas Gohr <andi@splitbrain.org> | 2012-08-26 16:35:17 +0200 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2012-08-26 16:35:17 +0200 |
commit | d9934ae081b45cb6c1bc53859e2c658d89990726 (patch) | |
tree | f97a144e6b8c4aa83156846c260bef979a636cb0 /inc/infoutils.php | |
parent | 5b838199e985590c6d716cd6add1973fcfd0d54c (diff) | |
download | rpg-d9934ae081b45cb6c1bc53859e2c658d89990726.tar.gz rpg-d9934ae081b45cb6c1bc53859e2c658d89990726.tar.bz2 |
removed data dir security check as suggested in FS#2547
Diffstat (limited to 'inc/infoutils.php')
-rw-r--r-- | inc/infoutils.php | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/inc/infoutils.php b/inc/infoutils.php index 9ee1a717d..7ceeae8f1 100644 --- a/inc/infoutils.php +++ b/inc/infoutils.php @@ -213,22 +213,6 @@ function check(){ msg('The current page is not writable by you',0); } - $check = wl('','',true).'data/_dummy'; - $http = new DokuHTTPClient(); - $http->timeout = 6; - $res = $http->get($check); - if(strpos($res,'data directory') !== false){ - msg('It seems like the data directory is accessible from the web. - Make sure this directory is properly protected - (See <a href="http://www.dokuwiki.org/security">security</a>)',-1); - }elseif($http->status == 404 || $http->status == 403){ - msg('The data directory seems to be properly protected',1); - }else{ - msg('Failed to check if the data directory is accessible from the web. - Make sure this directory is properly protected - (See <a href="http://www.dokuwiki.org/security">security</a>)',-1); - } - // Check for corrupted search index $lengths = idx_listIndexLengths(); $index_corrupted = false; |