Skip to content

Commit

Permalink
Merge pull request #64 from FriendsOfREDAXO/sitemap-fix
Browse files Browse the repository at this point in the history
Sitemap fix, Aufruf der Sitemap über secret ermöglichen
fixes: #63
  • Loading branch information
skerbis authored Jan 12, 2023
2 parents 201fa3a + 8fc25ea commit 0a3a74a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions boot.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
*/
// stop if Setup is active
if (rex::isSetup()) return;
$req = $_SERVER['REQUEST_URI'];
if (str_contains($req, 'sitemap.xml') === true && str_contains($req, 'secret='.$addon->getConfig('secret'))) {
return;
}
$addon = rex_addon::get('maintenance');
$secret = '';
$responsecode = $addon->getConfig('responsecode');
Expand Down

0 comments on commit 0a3a74a

Please sign in to comment.