Skip to content
Extraits de code Groupes Projets
Valider 1d7cc11e rédigé par Matthieu Napoli's avatar Matthieu Napoli
Parcourir les fichiers

Fixes #6918 Add proper HTTP status code (302 moved temporarily) to Url:redirect()

parent 97c23045
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -471,6 +471,7 @@ class Url ...@@ -471,6 +471,7 @@ class Url
if (UrlHelper::isLookLikeUrl($url) if (UrlHelper::isLookLikeUrl($url)
|| strpos($url, 'index.php') === 0 || strpos($url, 'index.php') === 0
) { ) {
Common::sendResponseCode(302);
Common::sendHeader("Location: $url"); Common::sendHeader("Location: $url");
} else { } else {
echo "Invalid URL to redirect to."; echo "Invalid URL to redirect to.";
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter