M
M
Messi2017-04-12 20:10:22
symfony
Messi, 2017-04-12 20:10:22

Case insensitive in references?

A site on Symfony 2, when I click on the link
https://mysite.com/newpizza/ H ot/ Tasty / I get a 404 error, and if
https://mysite.com/newpizza/ h ot/ tasty /, then the page is displayed.
Tell me, please, why is this so, where can it be configured in Symfony or in which direction to look?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis, 2017-04-12
@prototype_denis

Not the best idea https://tools.ietf.org/html/rfc2616#section-3.2.3
...but doable.

/**
  * @Route("newpizza/{first}/{second}", requirements={"first":"a-zA-Z", "second":"a-zA-Z"})
  */

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question