Thunderhead Engineering Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

Forum moved to https://forum.thunderheadeng.com

Author Topic: [ignore] test post to debug "too many quotes" issue  (Read 3659 times)

Charlie Thornton

  • Thunderhead
  • *****
  • Posts: 851
    • View Profile
[ignore] test post to debug "too many quotes" issue
« on: April 26, 2010, 08:02:03 am »

Single quotes are being replaced by double quotes:

Why can''t I have pizza every day?

Double quotes are being replaced by double, double quotes:

And then she said, "You should try it with lettuce!"
Logged

Charlie Thornton

  • Thunderhead
  • *****
  • Posts: 851
    • View Profile
Re: [ignore] test post to debug "too many quotes" issue
« Reply #1 on: April 26, 2010, 08:04:53 am »

Double quote substitution only happening on edit?

Right, computer science is an "engineering" degree :)

Edit: Maybe I need a single tick in there?  Can''''''''t get a free lunch.

Edit2: Maybe the double quotes are working properly.
« Last Edit: April 26, 2010, 08:06:34 am by Charlie Thornton »
Logged

Charlie Thornton

  • Thunderhead
  • *****
  • Posts: 851
    • View Profile
Re: [ignore] test post to debug "too many quotes" issue
« Reply #2 on: April 26, 2010, 08:15:26 am »

How''''''''s it working now?

Edit: Dang.
Logged

Charlie Thornton

  • Thunderhead
  • *****
  • Posts: 851
    • View Profile
Re: [ignore] test post to debug "too many quotes" issue
« Reply #3 on: April 26, 2010, 08:23:39 am »

How's about now? Fixed via DB edit.
Logged

Charlie Thornton

  • Thunderhead
  • *****
  • Posts: 851
    • View Profile
Re: [ignore] test post to debug "too many quotes" issue
« Reply #4 on: April 26, 2010, 08:32:57 am »

Messages are being saved with the duplicated ticks.  Correcting within the database fixes the problem (for that message).  It must be somewhere in the sanitizing code (Subs.php still seems like the right place?).
Logged