Raised This Month: $ Target: $400
 0% 

Removing ' from nick


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Backstabnoob
BANNED
Join Date: Feb 2009
Location: Iwotadai Dorm
Old 08-09-2011 , 07:47   Removing ' from nick
Reply With Quote #1

Hello, if someone has single quotes in nick name (pwn'd), my plugin that uses SQL connection crashes if it tries to put the nickname into database because of non-escaped character that breaks the query. I tried removing it from the nickname by using replace(name, 31, "'", ""), but it didn't do anything; the single quotes still remain not removed.

How can I possibly remove the single quotes from one's nickname?
Backstabnoob is offline
 



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

Forum Jump


All times are GMT -4. The time now is 03:19.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode