Previous Thread
Next Thread
Print Thread
Hop To
Joined: Feb 2007
Posts: 209
Enthusiast
Enthusiast
Joined: Feb 2007
Posts: 209
When making a poll with a word that contains an apostrophe it puts a leading \ in the word - IE Don't is displayed as Don\'t and isn't is displayed as isn\'t.


-Tim
Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
Looks like Rick hasn't ran the data through stripslashes


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
Hmm, I'm trying to figure out where this might be coming from. Everything concerning poll entry is ran through stripslashes where necessary and I can't duplicate it on my test board.

Does it show up on both the poll entry and results screen?

Joined: Jul 2006
Posts: 4,057
Joined: Jul 2006
Posts: 4,057
Force users to vote before viewing results.

Version 7.1

Seems to be on the output.

K chinggggggg Test Poll

You have to vote to see it.


BOOM !! Version v7.6.1.1
People who inspire me Isaac ME Gizmo
Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
I validate it shows on the result output lol


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Feb 2007
Posts: 209
Enthusiast
Enthusiast
Joined: Feb 2007
Posts: 209
Yeah, I just did the test poll. That is the output that I get as well.


-Tim
Joined: Feb 2007
Posts: 209
Enthusiast
Enthusiast
Joined: Feb 2007
Posts: 209
Originally Posted by Rick
Hmm, I'm trying to figure out where this might be coming from. Everything concerning poll entry is ran through stripslashes where necessary and I can't duplicate it on my test board.

Does it show up on both the poll entry and results screen?

If you have not voted it shows correctly. Once you vote and can see the results screen you will see the slash.


-Tim
Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
Fixed for 7.1.1. If you'd like to fix this in 7.1 you can edit libs/includepoll.inc.php:

Line 275 you'll see this:

$pollarray[$x]['option'] = "$option";

Right before that, add this:

Change that, to this:

$pollarray[$x]['option'] = stripslashes($option);



Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Bots
by Outdoorking - 04/13/2024 5:08 PM
Can you add html to language files?
by Baldeagle - 04/07/2024 2:41 PM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
This is not a bug, but a suggestion
by Baldeagle - 04/05/2024 11:25 PM
spam issues
by ECNet - 03/19/2024 11:45 PM
Who's Online Now
2 members (Ruben, 1 invisible), 998 guests, and 205 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)