Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Steur <tsteur@users.noreply.github.com>2019-10-02 23:57:53 +0300
committerGitHub <noreply@github.com>2019-10-02 23:57:53 +0300
commite4f54754ea3c4821d4a602a539e5efe6064067dc (patch)
tree69aaabdf01886db9073620ebc51debbe622b591c /core/Filechecks.php
parentdb30cea797f7bb112bd93a5e7537e779c06d72dd (diff)
To not prefix dir ever (#14928)
Diffstat (limited to 'core/Filechecks.php')
-rw-r--r--core/Filechecks.php6
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);