"Return to topic" not working.
"Return to topic" not working.
Author
Discussion

feef

Original Poster:

5,209 posts

212 months

Thursday 25th June 2015
quotequote all
When clicking "return to topic" after posting a reply on a thread, I get a 'page not found' error.

Anyone else?

RacingPete

9,195 posts

233 months

Thursday 25th June 2015
quotequote all
I am guessing this is only on some threads, and those where the title has a single apostrophe or other non-alphanumberic characters.

Can you point to a thread you last have it happen on please?

feef

Original Poster:

5,209 posts

212 months

Thursday 25th June 2015
quotequote all
http://www.pistonheads.com/gassing/topic.asp?h=0&a...


"Return to topic" fails after a reply, but it works after a post deletion.

RacingPete

9,195 posts

233 months

Thursday 25th June 2015
quotequote all
Yep, the @ symbol is causing the issue with over aggressive SQL injection blocking.

feef

Original Poster:

5,209 posts

212 months

Tuesday 7th July 2015
quotequote all
Why not use parameterized queries/prepared statements rather than over-aggressive SQL checking that breaks stuff?

RacingPete

9,195 posts

233 months

Tuesday 7th July 2015
quotequote all
feef said:
Why not use parameterized queries/prepared statements rather than over-aggressive SQL checking that breaks stuff?
We can and do... but not all parts of the site have been touched recently and thus there are still parts that are older.

feef

Original Poster:

5,209 posts

212 months

Tuesday 7th July 2015
quotequote all
Fair enough.