PDA

View Full Version : [fixed] Weird issue



ethank
Mon 8th Apr '02, 9:37pm
On my production boards, poll options are showing up with:

Test isn\'t
Test isn\'t2

Slashes show up only for poll options. THey don't show up on my dev box, nor do they show up anywhere else. Code on poll.php is identical to the released vbulletin 2.2.5 code. If you edit a poll it adds more slashes, and the slashes show up in teh database, but only on my production box.

This is very very strange.

Ethan

ethank
Mon 8th Apr '02, 10:28pm
This is weird. For some reason, the $optionsstring variable in poll.php is getting an addslashes treatment even before that function is called on it. Very odd indeed I think. I even echoed it out to test and took off addslashes from the query and now it works. This only happens on my production box and there are no code differences between the two.

I'm reinstalling PHP right now.

Ethan

ethank
Mon 8th Apr '02, 10:32pm
Reinstalling PHP did nothing. This is mighty strange. It only happens on poll.php as well. Somehow a variable is getting addslashes treatment without it being in the code. And only one variable.

Brian Cruz
Tue 9th Apr '02, 4:08pm
I'm having this problem too. Every poll that contians a choice with an apostrophe in it has a slash before the apostrophe. Is there a fix for this?

Una Persson
Sun 21st Apr '02, 1:38am
Not to nag or anything, but I have been seeing this too ever since upgrading to version 2.2.5. It's getting to be a serious issue from a professional "look-and-feel" standpoint. And it is 100% repeatable. Is there no official answer yet for this, even one which is "we are aware of it and looking into it"?

TIA,
Una

Steve Machol
Sun 21st Apr '02, 1:42am
Yep, this problem is happening in my forums too. Moving to 'bugs'.

Fusion
Sun 21st Apr '02, 10:15am
Actually, people.. This is just a covert attempt by the Brits to encourage us to use posh&proper writing in polls. You know, "Is not", not "isn't" and so forth. ;)

Chen
Sun 21st Apr '02, 3:22pm
This is a problem that only happens when magic_quotes_gpc is on.
The problem is with this code in global.php:

} else if (is_array($val) AND ($key = 'HTTP_POST_VARS' OR $key == 'HTTP_GET_VARS' OR strtoupper($key)!=$key)) {
There is a "=" sign missing before 'HTTP_POST_VARS'. Make that line look like this:

} else if (is_array($val) AND ($key == 'HTTP_POST_VARS' OR $key == 'HTTP_GET_VARS' OR strtoupper($key)!=$key)) {
And it will solve the problem (at least it did on my local computer :)).

BTW this problem is only in version 2.2.5... if that matters at all.

Freddie Bingham
Sun 21st Apr '02, 4:02pm
Use this global.php

Markjpx
Sun 21st Apr '02, 4:09pm
Thanks Firefly and Freddie. I was pulling my hair out.

DVD Plaza
Sun 21st Apr '02, 8:16pm
Originally posted by smachol
Yep, this problem is happening in my forums too. Moving to 'bugs'. Yet in my thread a few weeks ago you said it was due to my hacks (so I simply dumped the issue since I know, and have documented, exactly what I've changed)!

Erwin
Mon 22nd Apr '02, 12:20am
Ahhh... no wonder... I thought it was a hack I installed too when I read the other thread, and wasted hours trying to find out which one... :)

Shall fix this one ASAP. Thanks!

Una Persson
Mon 22nd Apr '02, 12:30am
Fast and friendly service as usual guys, thank you very much. :)

ethank
Mon 22nd Apr '02, 12:53am
Originally posted by Una Persson
Fast and friendly service as usual guys, thank you very much. :)

Not exactly fast, look at the submission date.

Steve Machol
Mon 22nd Apr '02, 1:36am
Originally posted by DVD Plaza
Yet in my thread a few weeks ago you said it was due to my hacks (so I simply dumped the issue since I know, and have documented, exactly what I've changed)! Actually what I said was:

"It's possible a hack you've installed has interfered with parsing of quotes."

Noneless I was wrong and should have tested out on my board at the time. Sorry!

Una Persson
Tue 23rd Apr '02, 12:15am
Originally posted by ethank
Not exactly fast, look at the submission date.
Two weeks ago, right? Seems fast to me. Perhaps you should have mailed someone to see if they had just overlooked it. It's easy to overlook a thread on a busy Board, after all...

Freddie Bingham
Tue 23rd Apr '02, 12:42am
I simply missed this thread when it was originally posted.

Chen
Tue 23rd Apr '02, 9:06am
Originally posted by ethank
Not exactly fast, look at the submission date.
A fix was provided on the same day Steve moved it to Bugs.

ethank
Tue 23rd Apr '02, 12:38pm
Originally posted by FireFly

A fix was provided on the same day Steve moved it to Bugs.

04-08-2002 05:37 PM - original submission date. Not to nitpick, and I understand how things can fall through the cracks, but it would have been nice to have had a "we're looking into it."

Floris
Thu 9th May '02, 9:17am
You don't want to sound like nagging, but after four posts, it does sound like it :) I thank Freddie for providing a new file, instead of us having to wait for 2.2.6 .. fnx!