(Link to AcmlmWiki) Offline: thank ||bass
Register | Login
Views: 13,040,846
Main | Memberlist | Active users | Calendar | Chat | Online users
Ranks | FAQ | ACS | Stats | Color Chart | Search | Photo album
06-15-24 08:00 PM
0 users currently in Help, Suggestions, Bug Reports.
Acmlm's Board - I3 Archive - Help, Suggestions, Bug Reports - Replacement suggestions
  
User name:
Password:
Reply:
 
Options: - -
Quik-Attach:
Preview for more options

Max size 1.00 MB, types: png, gif, jpg, txt, zip, rar, tar, gz, 7z, ace, mp3, ogg, mid, ips, bz2, lzh, psd

UserPost
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
Well. I would still like to be a part of the board coding team. So...

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
$post = str_replace("&", "&", $post);
$post = str_replace("<", "&lt;", $post);
$post = str_replace(">", "&gt;", $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 (& = &amp; , > = &gt; , etc.) doesn't turn into "unescaped" charactes

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("&", "&amp;", $post);
$post = str_replace("<", "&lt;", $post);
$post = str_replace(">", "&gt;", $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 (& = &amp; , > = &gt; , etc.) doesn't turn into "unescaped" charactes
Acmlm's Board - I3 Archive - Help, Suggestions, Bug Reports - Replacement suggestions


ABII

Acmlmboard 1.92.999, 9/17/2006
©2000-2006 Acmlm, Emuz, Blades, Xkeeper

Page rendered in 0.007 seconds; used 350.17 kB (max 393.37 kB)