File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -207,13 +207,15 @@ public static function checkFrontend(): void
207
207
208
208
// If the sitemap is requested, do not block the request
209
209
$ REQUEST_URI = rex_server ('REQUEST_URI ' , 'string ' , '' );
210
- if (true === str_contains ($ REQUEST_URI , 'sitemap.xml ' )) {
211
- return ;
212
- }
213
-
214
- // If YDeploy is used, do not block the request
215
- $ REQUEST_URI = rex_server ('REQUEST_URI ' , 'string ' , '' );
216
- if (true === str_contains ($ REQUEST_URI , '_clear_cache/_clear_cache.php ' )) {
210
+
211
+ $ allowedUris = [
212
+ '/_clear_cache/_clear_cache.php ' ,
213
+ '/sitemap.xml ' ,
214
+ ];
215
+
216
+ // Exclude maintenance mode only for exact paths:
217
+ if (in_array ($ REQUEST_URI , $ allowedUris , true )) {
218
+ // Maintenance mode NOT active – allow request
217
219
return ;
218
220
}
219
221
You can’t perform that action at this time.
0 commit comments