collapse collapse
* User Info
 
 
Welcome, Guest. Please login or register.
* Search

* Board Stats
  • stats Total Members: 989
  • stats Total Posts: 18366
  • stats Total Topics: 2501
  • stats Total Categories: 7
  • stats Total Boards: 35
  • stats Most Online: 1144

Author Topic: Apostrophe in nickname  (Read 4387 times)

0 Members and 1 Guest are viewing this topic.

Offline knuckle

  • BeBot Rookie
  • *
  • Posts: 3
  • Karma: +0/-0
Apostrophe in nickname
« on: December 11, 2009, 11:25:28 am »
Hi all.

One Person in my Guild has bad nickname with Apostophe inside (Arrow'man).
What can i do in that sitation? MB there is entry point where i can add htmlspecialchars function? Check all bot's code - very difficult job, I think. Any ideas? MB any one had such problem? Thx you all.

Errors in log:
--------
MySQL ERROR(# 3) on query: SELECT char_id FROM guildbot_users WHERE nickname = 'Arrow'man'
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'man'' at line 1MySQL ERROR(# 4) on query: SELECT char_id FROM guildbot_users WHERE nickname = 'Arrow'man'
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'man'' at line 1MySQL ERROR(# 5) on query: SELECT user_level FROM guildbot_users WHERE nickname = 'Arrow'man'
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'man'' at line 1MySQL ERROR(# 6) on query: SELECT char_id, user_level FROM guildbot_users WHERE nickname = 'Arrow'man'
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'man'' at line 1MySQL ERROR(# 7) on query: INSERT INTO guildbot_users (char_id, nickname, added_by, added_at, user_level, notify) VALUES('268606455', 'Arrow'man', 'Guildbot', '1260525223', '2', '1')
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'man', 'Guildbot', '1260525223', '2', '1')' at line 1Guildbot [BUDDY]  [BUDDY-ADD]     Arrow'man
Guildbot [TELL] [OUT]   -> Arrow'man: Guildbot has added you to the bot.
MySQL ERROR(# 8) on query: SELECT * FROM whois WHERE nickname = 'Arrow'man'
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'man'' at line 1MySQL ERROR(# 9) on query: SELECT * FROM craftingclass WHERE name = 'Arrow'man'
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'man'' at line 1MySQL ERROR(# 10) on query: INSERT INTO whois (id, nickname, level, class, craft1, craft2, location, online, updated) VALUES ('268606455', 'Arrow'man', '38', 'Ranger', '', '', 204687, 1, '1260525223') ON DUPLICATE KEY UPDATE id = VALUES(id), level = VALUES(level), class = VALUES(class), craft1 = VALUES(craft1), craft2 = VALUES(craft2), online = VALUES(online), location = VALUES(location),  updated = VALUES(updated)
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'man', '38', 'Ranger', '', '', 204687, 1, '1260525223') ON DUPLICATE KEY UPDATE ' at line 1Guildbot [BUDDY]    [LOG]   Arrow'man changed status [1] (not on notify)
MySQL ERROR(# 11) on query: SELECT char_id FROM guildbot_users WHERE nickname = 'Arrow'man'
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'man'' at line 1MySQL ERROR(# 12) on query: SELECT char_id FROM guildbot_users WHERE nickname = 'Arrow'man'
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'man'' at line 1MySQL ERROR(# 13) on query: SELECT * FROM whois WHERE nickname = 'Arrow'man'
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'man'' at line 1MySQL ERROR(# 14) on query: SELECT * FROM craftingclass WHERE name = 'Arrow'man'
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'man'' at line 1MySQL ERROR(# 15) on query: INSERT INTO whois (id, nickname, level, class, craft1, craft2, location, online, updated) VALUES ('268606455', 'Arrow'man', '38', 'Ranger', '', '', 204687, 1, '1260525223') ON DUPLICATE KEY UPDATE id = VALUES(id), level = VALUES(level), class = VALUES(class), craft1 = VALUES(craft1), craft2 = VALUES(craft2), online = VALUES(online), location = VALUES(location),  updated = VALUES(updated)
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'man', '38', 'Ranger', '', '', 204687, 1, '1260525223') ON DUPLICATE KEY UPDATE ' at line 1MySQL ERROR(# 16) on query: SELECT char_id FROM guildbot_users WHERE nickname = 'Arrow'man'
------

P.S: Sorry for my english

Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
Re: Apostrophe in nickname
« Reply #1 on: December 12, 2009, 05:56:04 pm »
that nickname is going to make ALOT of issues with the bot
with modules as well as mysql

Offline Khalem

  • BeBot Founder
  • Administrator
  • ********
  • Posts: 1169
  • Karma: +0/-0
    • http://www.ancarim.com
Re: Apostrophe in nickname
« Reply #2 on: December 13, 2009, 01:23:48 pm »
Since it seems AoC is allowig such names, we have no other option but to support it.

But as it stands, this is going to break things badly.
BeBot Founder and Fixer Kingpin

Offline Glarawyn

  • BeBot Hero
  • ******
  • Posts: 521
  • Karma: +0/-0
Re: Apostrophe in nickname
« Reply #3 on: December 16, 2009, 01:26:02 am »
More mysql_real_escape_string() needed it seems.

Or addslashes() & stripslashes()...

Offline Alreadythere

  • BeBot Maintainer
  • BeBot Hero
  • ******
  • Posts: 1288
  • Karma: +0/-0
Re: Apostrophe in nickname
« Reply #4 on: December 16, 2009, 11:51:39 pm »
It's not only mysql making trouble, lot's of regular expressions assume only letters in the nicks.

Offline Glarawyn

  • BeBot Hero
  • ******
  • Posts: 521
  • Karma: +0/-0
Re: Apostrophe in nickname
« Reply #5 on: December 17, 2009, 05:50:34 am »
People still play AoC?  :o  :P  :o

People still play AO?  :P  :o  :P

Offline Getrix

  • Contributor
  • *******
  • Posts: 509
  • Karma: +0/-0
Re: Apostrophe in nickname
« Reply #6 on: December 17, 2009, 07:11:05 am »
Its probly RU and PL that allow char other then letters..
EU client/server do not allow ' etc
Success is not final, failure is not fatal: it is the courage to continue that counts.
- Sorry, i dont have time to reply question on PM. Make a topic.

 

* Recent Posts
Com bot module by bitnykk
[November 25, 2024, 05:36:11 pm ]


0.8.x updates for AO by bitnykk
[June 23, 2024, 03:19:47 pm ]


0.8.x updates for AoC by bitnykk
[June 23, 2024, 03:19:44 pm ]


[AoC] special char for items module by bitnykk
[February 09, 2024, 09:41:18 pm ]


BeBot still alive & kicking ! by bitnykk
[December 17, 2023, 12:58:44 am ]

* Who's Online
  • Dot Guests: 318
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.
* Forum Staff
bitnykk admin bitnykk
Administrator
Khalem admin Khalem
Administrator
WeZoN gmod WeZoN
Global Moderator
SimplePortal 2.3.7 © 2008-2024, SimplePortal