@@ -117,8 +117,8 @@ public static function initPaths(): void {
117117 if (substr ($ scriptName , -1 ) == '/ ' ) {
118118 $ scriptName .= 'index.php ' ;
119119 //make sure suburi follows the same rules as scriptName
120- if (substr (OC ::$ SUBURI , -9 ) != 'index.php ' ) {
121- if (substr (OC ::$ SUBURI , -1 ) != '/ ' ) {
120+ if (substr (OC ::$ SUBURI , -9 ) !== 'index.php ' ) {
121+ if (substr (OC ::$ SUBURI , -1 ) !== '/ ' ) {
122122 OC ::$ SUBURI = OC ::$ SUBURI . '/ ' ;
123123 }
124124 OC ::$ SUBURI = OC ::$ SUBURI . 'index.php ' ;
@@ -131,7 +131,7 @@ public static function initPaths(): void {
131131 if (substr ($ scriptName , 0 - strlen (OC ::$ SUBURI )) === OC ::$ SUBURI ) {
132132 OC ::$ WEBROOT = substr ($ scriptName , 0 , 0 - strlen (OC ::$ SUBURI ));
133133
134- if (OC ::$ WEBROOT != '' && OC ::$ WEBROOT [0 ] !== '/ ' ) {
134+ if (OC ::$ WEBROOT !== '' && OC ::$ WEBROOT [0 ] !== '/ ' ) {
135135 OC ::$ WEBROOT = '/ ' . OC ::$ WEBROOT ;
136136 }
137137 } else {
@@ -236,7 +236,7 @@ public static function checkInstalled(\OC\SystemConfig $systemConfig): void {
236236
237237 public static function checkMaintenanceMode (\OC \SystemConfig $ systemConfig ): void {
238238 // Allow ajax update script to execute without being stopped
239- if (((bool )$ systemConfig ->getValue ('maintenance ' , false )) && OC ::$ SUBURI != '/core/ajax/update.php ' ) {
239+ if (((bool )$ systemConfig ->getValue ('maintenance ' , false )) && OC ::$ SUBURI !== '/core/ajax/update.php ' ) {
240240 // send http status 503
241241 http_response_code (503 );
242242 header ('X-Nextcloud-Maintenance-Mode: 1 ' );
0 commit comments