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
path: root/core
diff options
context:
space:
mode:
authorStefan Giehl <stefan@piwik.org>2018-01-12 10:34:15 +0300
committerMatthieu Aubry <mattab@users.noreply.github.com>2018-01-12 10:34:15 +0300
commit8389a2470a4cb119e298131bff550de3af9ccec4 (patch)
treeefbb1385c814ac9c2a681b65c55066869b5d3cb4 /core
parentd7a2b48fc3a1b7298c53787b75cc13e83289fc11 (diff)
trim any possible directory seperator (#12383)
Diffstat (limited to 'core')
-rw-r--r--core/FileIntegrity.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/FileIntegrity.php b/core/FileIntegrity.php
index 1cf19548f2..ceffefce23 100644
--- a/core/FileIntegrity.php
+++ b/core/FileIntegrity.php
@@ -171,7 +171,7 @@ class FileIntegrity
foreach (self::getPathsToInvestigate() as $file) {
$file = substr($file, strlen(PIWIK_DOCUMENT_ROOT)); // remove piwik path to match format in manifest.inc.php
- $file = ltrim($file, DIRECTORY_SEPARATOR);
+ $file = ltrim($file, "\\/");
$directory = dirname($file);
if(in_array($directory, $directoriesInManifest)) {
@@ -210,7 +210,7 @@ class FileIntegrity
continue;
}
$file = substr($file, strlen(PIWIK_DOCUMENT_ROOT)); // remove piwik path to match format in manifest.inc.php
- $file = ltrim($file, DIRECTORY_SEPARATOR);
+ $file = ltrim($file, "\\/");
if (self::isFileFromPluginNotInManifest($file, $pluginsInManifest)) {
continue;