Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Erreur 404 lorsqu'un paramètre est inconnu dans l'URI #302

Closed
wants to merge 1 commit into from

Conversation

bazooka07
Copy link
Collaborator

de la page HTML. Evite erreur 404 inadéquate !

voir discussion https://forum.pluxml.org/viewtopic.php?id=6336
le "merge" en automatique dans la branche echecs ne passe pas (pb
commit pour la fonction PlxShow::prechauffage() )

de la page HTML. Evite erreur 404 inadéquate !

voir discussion https://forum.pluxml.org/viewtopic.php?id=6336
le "merge" en automatique dans la branche echecs ne passe pas (pb
commit pour la fonction PlxShow::prechauffage() )
@haruka-7 haruka-7 added the bug label Nov 12, 2018
@haruka-7 haruka-7 self-requested a review November 12, 2018 21:15
@haruka-7 haruka-7 self-assigned this Nov 12, 2018
@haruka-7 haruka-7 changed the title Renvoie vers la page index.php si un paramètre est inconnu dans l'URI Erreur 404 lorsqu'un paramètre est inconnu dans l'URI Nov 12, 2018
@haruka-7 haruka-7 added this to the 5.7 milestone Nov 12, 2018
Copy link
Collaborator

@haruka-7 haruka-7 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Je confirme l'anomalie en 5.6 et en 5.7 (avec et sans le plugin plxMyBetterUrls).

@bazooka07, deux remarques :

  1. Pourquoi ajouter "telechargement|download" dans le test ?

  2. Afin d'harmonizer l'indentation avec le reste du code, peux-tu mettre tout le test sur une seule ligne et remplacer le "or" par "OR", stp ?

elseif(empty($this->get) OR preg_match('@^(blog|blog\/page[0-9]*|\/?page[0-9]*)$@', $this->get) OR !preg_match('@^(?:article|static|categorie|archives|tag|preview|telechargement|download)[\b\d/]+@', $this->get)) {

@bazooka07
Copy link
Collaborator Author

Les tests sur "telechargement|download" sont faits plus loin dans cette fonction.
Il n'y a donc pas lieu de bloquer la requête ici si ces paramètres sont présents.

Mettre tous ces tests sur la même ligne va dépasser allégrment les 80 colonnes. Pas facile pour maintenir le code.

@haruka-7 haruka-7 closed this in 842e697 Nov 28, 2018
@haruka-7 haruka-7 removed the waiting label Nov 28, 2018
haruka-7 pushed a commit that referenced this pull request Dec 3, 2018
de la page HTML. Evite erreur 404 inadéquate !

voir discussion https://forum.pluxml.org/viewtopic.php?id=6336
le "merge" en automatique dans la branche echecs ne passe pas (pb
commit pour la fonction PlxShow::prechauffage() )

Indentation

MAJ Changelog FIX #302
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants