You have a bug in your message system.....
The recieved message shows slashes and screwed up html codes....
The solution is to add this to the code:
Code: Select all
$message = htmlentities(stripslashes($message));That's all...
Code: Select all
$message = htmlentities(stripslashes($message));Sub_Zero wrote:Hey
You have a bug in your message system.....
The recieved message shows slashes and screwed up html codes....
The solution is to add this to the code:Code: Select all
$message = htmlentities(stripslashes($message));
That's all...
Code: Select all
$message = str_replace("\n", "<br>", $message);RobinInDaHood wrote:Sub_Zero wrote:Hey
You have a bug in your message system.....
The recieved message shows slashes and screwed up html codes....
The solution is to add this to the code:Code: Select all
$message = htmlentities(stripslashes($message));
That's all...
It would be nice if you'd also do the following:Code: Select all
$message = str_replace("\n", "<br>", $message);
That would maintain newlines in the messages and not run everything together into one contiguous line. This line would have to be inserted after the htmlentities() call above otherwise the <br> tags would be rendered as text.
Inferno™ wrote:Its fixed so paragraphs are now possible. Dont you use the message system?
It would be nice if you'd also do the following:Code: Select all
$message = str_replace("\n", "<br>", $message);
That would maintain newlines in the messages and not run everything together into one contiguous line. This line would have to be inserted after the htmlentities() call above otherwise the <br> tags would be rendered as text.
Code: Select all
$message = htmlentities(stripslashes($message));Code: Select all
$message = str_replace("\n", "<br />\n",htmlentities(stripslashes($message)));