From 3de1fc3097cc7a1e38bf1a0c3cae5ae4ec8067eb Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Sun, 31 Mar 2019 06:00:20 -0400 Subject: [PATCH] Hotfix for App->registerStylesheet - Wrong condition for strpos() - Follow-up to #6953 --- src/App.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/App.php b/src/App.php index 8f512894c3..f4fb3fa3d9 100644 --- a/src/App.php +++ b/src/App.php @@ -182,8 +182,8 @@ class App */ public function registerStylesheet($path) { - if (mb_strpos($path, $this->getBasePath() . DIRECTORY_SEPARATOR) == 0) { - $path = mb_substr($path, mb_strlen($this->getBasePath() . DIRECTORY_SEPARATOR)); + if (mb_strpos($path, $this->getBasePath() . DIRECTORY_SEPARATOR) === 0) { + $path = mb_substr($path, mb_strlen($this->getBasePath() . DIRECTORY_SEPARATOR)); } $this->stylesheets[] = trim($path, '/');