diff options
author | Thomas Steur <tsteur@users.noreply.github.com> | 2019-10-02 23:57:53 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-02 23:57:53 +0300 |
commit | e4f54754ea3c4821d4a602a539e5efe6064067dc (patch) | |
tree | 69aaabdf01886db9073620ebc51debbe622b591c /core/Filechecks.php | |
parent | db30cea797f7bb112bd93a5e7537e779c06d72dd (diff) |
To not prefix dir ever (#14928)
Diffstat (limited to 'core/Filechecks.php')
-rw-r--r-- | core/Filechecks.php | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/core/Filechecks.php b/core/Filechecks.php index 1447315bb1..ed0c1c3a9f 100644 --- a/core/Filechecks.php +++ b/core/Filechecks.php @@ -40,12 +40,6 @@ class Filechecks { $resultCheck = array(); foreach ($directoriesToCheck as $directoryToCheck) { - if (!preg_match('/^' . preg_quote(PIWIK_USER_PATH, '/') . '/', $directoryToCheck) - && !preg_match('/^' . preg_quote(PIWIK_DOCUMENT_ROOT, '/') . '/', $directoryToCheck) - && !preg_match('/^' . preg_quote(PIWIK_INCLUDE_PATH, '/') . '/', $directoryToCheck)) { - $directoryToCheck = PIWIK_USER_PATH . $directoryToCheck; - } - Filesystem::mkdir($directoryToCheck); $directory = Filesystem::realpath($directoryToCheck); |