PDA

View Full Version : Escaped characters



Mike Sullivan
Wed 19th Apr '00, 7:20am
Hello,

Don't know if this was just my server, but... well, I'm not exactly sure how to explain it, so I'll just give an example.

In the "Replacement Variables" section, say I replace <BODY> with <BODY bgcolor="#000000" text="#ffffff">. When the value is changed, it becomes this instead: <BODY bgcolor=\"#000000\" text=\"#ffffff\">. Notice how the quotes are escaped? Well, this really messes up some stuff (my text was bright blue, not white). So while fooling around with some code, I just removed the addslashes() function from the lines and it worked fine.

So, was there any reason for the addslashes() function? Otherwise, I think it should be either removed or compensated for (ie. remove the escape character - \ - from the line)

Jerry Davis
Thu 20th Apr '00, 5:47am
Posts containing apostrophes are coming back as \'. If previewed once before submitting the ' will be \' in the preview and \\\' in the final. Seems as if some characters are constantly being escaped with the preview functionality just adding to the problem.

John mentioned to me there was a fix and I notice this is not a problem on this board. Is this a server configuration issue or just a problem with vBulletin Version 1.1.0 BETA 2?

Thanks,

Jerry Davis
Information Systems Manager
Chicago Reader Inc.
11 E. Illinois St.
Chicago, IL 60611

E-mail: jdavis@chicagoreader.com
Phone: 312-828-0350 x661
Fax: 312-828-0865
Web Sites: http://www.chicagoreader.com, http://www.straightdope.com

James
Thu 20th Apr '00, 5:56am
This was a bug with the Beta version of vBulletin that has now been fixed.

John will be in contact with you guys soon to get your boards upgraded to the current version :)

All the best,

James