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:
authormattab <matthieu.aubry@gmail.com>2014-05-01 08:43:07 +0400
committermattab <matthieu.aubry@gmail.com>2014-05-01 08:43:07 +0400
commitf7f5296b19316427c34551138b98b639e505546e (patch)
tree2ddc15d784abcd4c6934cf74aaf6082d84de66f9 /core/AssetManager
parenta4710cbb1718d010f52f8386de42cd3023269805 (diff)
Refs #5060 Remove use of substr_compare as it's buggy in 5.5.11 with negative offset
Diffstat (limited to 'core/AssetManager')
-rw-r--r--core/AssetManager/UIAssetMerger/StylesheetUIAssetMerger.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/AssetManager/UIAssetMerger/StylesheetUIAssetMerger.php b/core/AssetManager/UIAssetMerger/StylesheetUIAssetMerger.php
index fde216b667..52c21c9447 100644
--- a/core/AssetManager/UIAssetMerger/StylesheetUIAssetMerger.php
+++ b/core/AssetManager/UIAssetMerger/StylesheetUIAssetMerger.php
@@ -138,7 +138,7 @@ class StylesheetUIAssetMerger extends UIAssetMerger
$rootDirectory = realpath($uiAsset->getBaseDirectory());
if ($rootDirectory != PATH_SEPARATOR
- && substr_compare($rootDirectory, PATH_SEPARATOR, -strlen(PATH_SEPARATOR))) {
+ && substr($rootDirectory, -strlen(PATH_SEPARATOR)) !== PATH_SEPARATOR) {
$rootDirectory .= PATH_SEPARATOR;
}
$rootDirectoryLen = strlen($rootDirectory);