diff options
author | Stefan Giehl <stefan@piwik.org> | 2018-01-12 10:34:15 +0300 |
---|---|---|
committer | Matthieu Aubry <mattab@users.noreply.github.com> | 2018-01-12 10:34:15 +0300 |
commit | 8389a2470a4cb119e298131bff550de3af9ccec4 (patch) | |
tree | efbb1385c814ac9c2a681b65c55066869b5d3cb4 /core | |
parent | d7a2b48fc3a1b7298c53787b75cc13e83289fc11 (diff) |
trim any possible directory seperator (#12383)
Diffstat (limited to 'core')
-rw-r--r-- | core/FileIntegrity.php | 4 |
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; |