X7 Chat Support Board
Welcome, Guest. Please login or register.
March 11, 2010, 07:41:29 PM

Login with username, password and session length
Search:     Advanced search
X7 Chat Version 3.0.0 Alpha 2 is now available (http://x7chat.com/support_forum/index.php?topic=3198.msg11497#new).
12888 Posts in 3679 Topics by 53445 Members
Latest Member: minigruasbiuea
* Home Help Search Login Register
+  X7 Chat Support Board
|-+  X7 Chat Mods
| |-+  Developer Support
| | |-+  Room name which has "&" sign never gets deleted or edited
« previous next »
Pages: [1] Reply Send this topic Print
Author Topic: Room name which has "&" sign never gets deleted or edited  (Read 989 times)
ajay
Member
*
Offline Offline

Posts: 3


View Profile Email
« on: September 23, 2009, 03:44:14 AM »
Reply with quote

Hi there,
           I have created a room "For friends & friendship". Now i am not able open this room or edit this room or delete this room. After trying to find the reason i got to know that it's because of that "&" sign in room name. Please can someone help me how to delete such room. And what do i need to do to accept such signs for room name, because if my site members will create a room with such signs it will create a big problem for me. I think it's a coding part and there will be other signs also which can create such problem. So Please help & suggest me what do i need to do?
Report to moderator   Logged
ajay
Member
*
Offline Offline

Posts: 3


View Profile Email
« Reply #1 on: September 23, 2009, 05:01:23 AM »
Reply with quote

I deleted the rooms which have "&" sign in name from the database but still problem is there only.. what do i need to do to accept such signs(like "&" for which i faced problem) in Room name.
Report to moderator   Logged
Desmond Taylor
Guest


Email
« Reply #2 on: December 30, 2009, 01:25:17 PM »
Reply with quote

I don't know what script to edit but when creating a room parse the signs like & using htmlspecialchars() function.

example:
$room_name = htmlspecialchars($_POST['room_name']);

this would conver the & sign to &

I really havent looked at any of the code yet but will be shortly as I would like to add extra features.
Report to moderator   Logged
Pages: [1] Reply Send this topic Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.9 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 0.051 seconds with 19 queries.