Register | Login | |||||
Main
| Memberlist
| Active users
| Calendar
| Chat
| Online users Ranks | FAQ | ACS | Stats | Color Chart | Search | Photo album |
| |
0 users currently in Help, Suggestions, Bug Reports. |
User | Post |
Zem Posts: 530/1097 |
I couldn't, but you could. And that would do the trick. |
Xkeeper Posts: 1039/5653 |
I'm not at home (away), and I've been lazy (and tired).
Besides, couldn't you just use htmlspecialchars() instead? |
Zem Posts: 526/1097 |
Just reminding you to put this in.
In case you forget. Cuz it's not in yet. |
Chaos Force Posts: 201/1056 |
I thought that was originally part of the code since v1.90 or something. |
Zem Posts: 506/1097 |
Originally posted by Boom.dk I support this (not that my opinion matters >=D ) |
Boom.dk Posts: 59/356 |
Well. I would still like to be a part of the board coding team. So... |
Xkeeper Posts: 1010/5653 |
Ironically, I had just came up with this idea around 7 PM, heh...
I'll put it (and the other anti-JS thing) in tomorrow, maybe; I just have to figure out where I'm going to be putting the anti-JS script. |
Zem Posts: 490/1097 |
Originally posted by Boom.dk YES. PLEASE FUCKING DO THIS. Please please please do this. And if you're looking at it going "wait... won't that over-escape characters when you edit posts?" No... no it won't. This will just solve all the problems. |
Boom.dk Posts: 54/356 |
$post = str_replace("&", "&", $post);
$post = str_replace("<", "<", $post); $post = str_replace(">", ">", $post); If you do that to the stuff that goes into the <textarea> when editing/previewing posts: 1) Typing in </textarea> doesn't fuck up the page and 2) "escaped" characters (& = & , > = > , etc.) doesn't turn into "unescaped" charactes |