Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 28 Aug 2016, 04:57
Inked_Mono Inked_Mono is offline
 
Join Date: Jan 2015
Inferno Shoutbox - Backslashes on Apostrophes? ( "\")

Hey there! I'm having an issue with my shoutbox where any time an apostrophe is used, it seems to add a backslash as well. This also happens with quotes.

http://i.imgur.com/Pb4TrHL.png

Any idea what the cause might be?
Reply With Quote
  #2  
Old 28 Aug 2016, 07:02
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Real name: Mark
I would suggest asking about this in the modification's thread...that way the devloper of the mod will be more likely to see your question.
__________________
Former vBulletin.org Staff Member



Support for my products (as well as updates/new product publishing) has been moved to MHB - vBulletin Products and TAZ - Add-ons
Reply With Quote
  #3  
Old 28 Aug 2016, 18:35
Inked_Mono Inked_Mono is offline
 
Join Date: Jan 2015
Originally Posted by MarkFL View Post
I would suggest asking about this in the modification's thread...that way the devloper of the mod will be more likely to see your question.
I'd be extremely surprised if they were still offering support, haha. Thanks though, I'll give it a shot!
Reply With Quote
  #4  
Old 28 Aug 2016, 19:15
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Real name: Mark
Originally Posted by Inked_Mono View Post
I'd be extremely surprised if they were still offering support, haha. Thanks though, I'll give it a shot!
Even if the developer is long gone from vBorg, others who have installed and using it would be more likely to see your question there as well.

In general we ask that questions regarding mods that are available here be posted in the thread pertaining to the mod, not only for the reasons I stated, but it is better for site organization as well.
__________________
Former vBulletin.org Staff Member



Support for my products (as well as updates/new product publishing) has been moved to MHB - vBulletin Products and TAZ - Add-ons
Reply With Quote
  #5  
Old 29 Aug 2016, 05:41
Inked_Mono Inked_Mono is offline
 
Join Date: Jan 2015
Hey, I know this was in the wrong section to begin with, but in case someone searches up the same thing, I thought I'd post the fix I was able to come up with!

Search tags: Inferno Shoutbox V3 AJAX

Fix:

In the infernoshout.php file look for the method in charge of submitting the shout:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Call the stripslashes() method on the message call. Stripslashes() is generally used with the PHP directive magic_quotes_gpc is toggled on (which is generally set to on by default before PHP 5.4). Your code will look something like this:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

This will return your string with blackslashes stripped off. (\' becomes ' and so on.) Double backwards (\\) are made into a single backslash (\).

Cheers!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 20:30.

Layout Options | Width: Wide Color: