Free Republic
Browse · Search
News/Activism
Topics · Post Article

To: DoughtyOne

I hate to tell you but it is an easy fix. Simple RegEx expression in the validation code when posting replacing the offending characters with acceptable ones and viola. Fixed. It is a UTF8 <-> ANSI issue. Sanitize posts in existing code, and you will not invoke hardly any additional CPU cycle overhead. Nothing else would be affected. A few CPU cycles to find the offending characters and replace them in memory before committing the post to the database.

Example: wouldn’t would become wouldn’t Look at the character in the post you made. copy and paste your original wouldn’t to me, and copy and paste my wouldn’t as well. It is a slanting ‘ Straight ones work fine. “ is another one. Opening and closing quotes mess up. Straight ones (ASCII) work fine.


54 posted on 02/23/2016 2:19:13 PM PST by LesbianThespianGymnasticMidget (God punishes Conservatives by making them argue with fools. Go Trump!)
[ Post Reply | Private Reply | To 35 | View Replies ]


To: LesbianThespianGymnasticMidget

Ok. Then lets say you are right.

What would be the deep dark secret that would keep Jim from implementing this? What possible motive could he have?

It will be fixed in time. I accept that. Others won’t.


59 posted on 02/23/2016 2:23:57 PM PST by DoughtyOne (Facing Trump nomination inevitability, folks are now openly trying to help Hillary destroy him.)
[ Post Reply | Private Reply | To 54 | View Replies ]

To: LesbianThespianGymnasticMidget

Hmmm straight quotes and apostrophes are modified by either FR or the front end and go fubar. My solution would still work. It has to be a smart quote setting in the backend database, or a bug. Either way, simple fix.

My regex solution would work 100% guaranteed.


60 posted on 02/23/2016 2:24:26 PM PST by LesbianThespianGymnasticMidget (God punishes Conservatives by making them argue with fools. Go Trump!)
[ Post Reply | Private Reply | To 54 | View Replies ]

To: LesbianThespianGymnasticMidget

I have also often wondered about some sort of regex fix. And since the site is perl-based, I would think it would be a simple thing to implement. And if it didn’t work, it wouldn’t do any harm... Like you said, regex filtering is very low overhead in perl.


80 posted on 02/23/2016 5:29:33 PM PST by LaRueLaDue
[ Post Reply | Private Reply | To 54 | View Replies ]

Free Republic
Browse · Search
News/Activism
Topics · Post Article


FreeRepublic, LLC, PO BOX 9771, FRESNO, CA 93794
FreeRepublic.com is powered by software copyright 2000-2008 John Robinson