[eluser]Leo78[/eluser]
[quote author="Aken" date="1338162302"]Because you're using (:any). Which means anything. They can add unlimited segments and it will still redirect. If you want to prevent it at the route level, you need to make your routes more specific.
And if you're getting SQL errors, that means you aren't correctly sanitizing data before putting it into your query, so you still need to look into that.[/quote]
Unfortunately I cannot be specifically because it's a title which the user types - the user can type any chars he wants.
What I'm trying to do is that the address will be in this format:
../foro/post/segment-title/
../foro/post/segment-title/segment-number/
If there are more than 3/4 (depend in the format) segments so 404 EROR will be shown.
That not what happenes now. the situation is that the user can add endless segments as I said before and I don't know how to prevent it in the route level. :-\
Thanks for your helping!