@@ -120,8 +120,8 @@ public static function initPaths(): void {
120120 if (substr ($ scriptName , -1 ) == '/ ' ) {
121121 $ scriptName .= 'index.php ' ;
122122 //make sure suburi follows the same rules as scriptName
123- if (substr (OC ::$ SUBURI , -9 ) != 'index.php ' ) {
124- if (substr (OC ::$ SUBURI , -1 ) != '/ ' ) {
123+ if (substr (OC ::$ SUBURI , -9 ) !== 'index.php ' ) {
124+ if (substr (OC ::$ SUBURI , -1 ) !== '/ ' ) {
125125 OC ::$ SUBURI = OC ::$ SUBURI . '/ ' ;
126126 }
127127 OC ::$ SUBURI = OC ::$ SUBURI . 'index.php ' ;
@@ -134,7 +134,7 @@ public static function initPaths(): void {
134134 if (substr ($ scriptName , 0 - strlen (OC ::$ SUBURI )) === OC ::$ SUBURI ) {
135135 OC ::$ WEBROOT = substr ($ scriptName , 0 , 0 - strlen (OC ::$ SUBURI ));
136136
137- if (OC ::$ WEBROOT != '' && OC ::$ WEBROOT [0 ] !== '/ ' ) {
137+ if (OC ::$ WEBROOT !== '' && OC ::$ WEBROOT [0 ] !== '/ ' ) {
138138 OC ::$ WEBROOT = '/ ' . OC ::$ WEBROOT ;
139139 }
140140 } else {
@@ -239,7 +239,7 @@ public static function checkInstalled(\OC\SystemConfig $systemConfig): void {
239239
240240 public static function checkMaintenanceMode (\OC \SystemConfig $ systemConfig ): void {
241241 // Allow ajax update script to execute without being stopped
242- if (((bool )$ systemConfig ->getValue ('maintenance ' , false )) && OC ::$ SUBURI != '/core/ajax/update.php ' ) {
242+ if (((bool )$ systemConfig ->getValue ('maintenance ' , false )) && OC ::$ SUBURI !== '/core/ajax/update.php ' ) {
243243 // send http status 503
244244 http_response_code (503 );
245245 header ('X-Nextcloud-Maintenance-Mode: 1 ' );
0 commit comments