Overview
Comment: | Empêcher les requêtes à favicon.ico de déclencher une requête cachée vers upgrade.php |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | dev |
Files: | files | file ages | folders |
SHA1: |
978ee985916799134c33ed8b22e2829c |
User & Date: | bohwaz on 2020-04-21 14:10:48 |
Other Links: | branch diff | manifest | tags |
Context
2020-04-21
| ||
23:16 | Fix upgrade check-in: c9d0003024 user: bohwaz tags: dev | |
14:10 | Empêcher les requêtes à favicon.ico de déclencher une requête cachée vers upgrade.php check-in: 978ee98591 user: bohwaz tags: dev | |
02:55 | Template: ajout d'un type select avec optgroups au widget input check-in: 62abb2d901 user: bohwaz tags: dev | |
Changes
Modified src/www/_route.php from [fc31a0628c] to [74f34e99f0].
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | <?php namespace Garradin; if (empty($_SERVER['REQUEST_URI'])) { die('Appel non supporté'); } $uri = $_SERVER['REQUEST_URI']; if ('_route.php' === basename($uri)) { die('Appel interdit'); } if (($pos = strpos($uri, '?')) !== false) { $uri = substr($uri, 0, $pos); } if (file_exists(__DIR__ . $uri)) | > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | <?php namespace Garradin; if (empty($_SERVER['REQUEST_URI'])) { die('Appel non supporté'); } $uri = $_SERVER['REQUEST_URI']; if ('_route.php' === basename($uri)) { die('Appel interdit'); } if ('favicon.ico' === basename($uri)) { die(''); } if (($pos = strpos($uri, '?')) !== false) { $uri = substr($uri, 0, $pos); } if (file_exists(__DIR__ . $uri)) |
︙ | ︙ |