PDA

View Full Version : What causes '&amp' instead of '&' in replies and polls?


TalkHardRandy
02-14-2003, 05:06 PM
Okay this is weird...

For some reason, whenever you quote a post, certain characters (i.e. <, >, &, ' , ") get changed from their standard characters to their HTML version, yet HTML is not turned on. This happens only with quotes and polls. If I create a new thread or new reply without a quote, it doesn't do it.

I've put a screen cap to show what I mean, but can anyone tell me where this is doing this at? I thought it was in the unhtmlspecialchars function, but I set that to default and all occurances of it... still doing the same thing.

RELP!!!

Dpcows
02-14-2003, 08:56 PM
i guess it is just protecting it self from bad html code.
i think you get this because html is turned off.
it sees the special chars as html and turns them into no-html.

it's not really a bug but, should eb corrected by vB

TalkHardRandy
02-15-2003, 07:05 PM
So, should I turn HTML on?

007
02-15-2003, 07:15 PM
that might work. I don't think there is really a way around this, but I have been wrong before.... :ermm:

Tigga
02-17-2003, 05:08 PM
Um... That wouldn't be a bug with vBulletin. It would have to be a hack or something like that that's causing the error. Just try quoting a post on here and you'll see it works fine. ;)

Erwin
02-17-2003, 05:41 PM
What version vB are you running? This is a known bug with older versions of vB and polls. Upgrade, and you should be fine.

TalkHardRandy
02-18-2003, 04:41 PM
vb 2.2.6

I did a clean install on and the error doesn't exist there, so it is a hack I installed... but I have no idea where to even start looking for the code.

Chris M
02-18-2003, 04:46 PM
It would be a hack that edits either:

showthread.php
OR
newreply.php

:)

They are the most likely two files that are affected...

Satan

TalkHardRandy
02-19-2003, 03:57 PM
I replaced newreply & that fixed the problem with the replies (broke a whole bunch o' other stuff, but that's beside the point). However, the polls are still doing the same thing. I tried to replace polls.php, but that didn't fix it.

So, what files do Polls and New Replys have in common?