Commit 83960624 authored by Vincent Petry's avatar Vincent Petry Committed by Thomas Müller

Add back htaccess test file for client-side check

parent c5627f49
......@@ -1186,6 +1186,9 @@ class OC_Util {
if (php_sapi_name() === 'cli-server') {
return false;
}
if (\OC::$CLI) {
return false;
}
// testdata
$fileName = '/htaccesstest.txt';
......
......@@ -60,6 +60,10 @@ class SecurityWarning implements ISettings {
}
public function getPanel() {
// create htaccess test file
$util = new \OC_Util();
$util->createHtaccessTestFile($this->config);
$template = new Template('settings', 'panels/admin/securitywarning');
// warn if php is not setup properly to get system variables with getenv
$path = getenv('PATH');
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment