(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
05-17-24 09:13 PM
0 users currently in Help, Suggestions, Bug Reports.
Acmlm's Board - I3 Archive - Help, Suggestions, Bug Reports - Replacement suggestions New poll | |
Add to favorites | Next newer thread | Next older thread
User Post
Boom.dk









Since: 11-18-05
From: Denmark

Last post: 6316 days
Last view: 6297 days
Skype
Posted on 01-22-06 04:01 PM Link | Quote
$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


(edited by Boom.dk on 01-22-06 05:06 PM)
(edited by Boom.dk on 01-22-06 05:06 PM)
Zem
Permabanned. Flaming, trolling, reregistering.


 





Since: 11-18-05

Last post: 6620 days
Last view: 6620 days
Posted on 01-22-06 05:42 PM Link | Quote
Originally posted by Boom.dk
$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

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.
Xkeeper
Took the board down in a blaze of glory, only to reveal how truly moronical ||bass is.


 





Since: 11-17-05
From: Henderson, Nevada

Last post: 6298 days
Last view: 6298 days
Skype
Posted on 01-23-06 03:34 AM Link | Quote
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.
Boom.dk









Since: 11-18-05
From: Denmark

Last post: 6316 days
Last view: 6297 days
Skype
Posted on 01-23-06 03:58 AM Link | Quote
Well. I would still like to be a part of the board coding team. So...
Zem
Permabanned. Flaming, trolling, reregistering.


 





Since: 11-18-05

Last post: 6620 days
Last view: 6620 days
Posted on 01-23-06 04:03 AM Link | Quote
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 )
Chaos Force
Just drifting by...


 





Since: 11-17-05

Last post: 6302 days
Last view: 6298 days
Posted on 01-24-06 03:52 PM Link | Quote
I thought that was originally part of the code since v1.90 or something.
Zem
Permabanned. Flaming, trolling, reregistering.


 





Since: 11-18-05

Last post: 6620 days
Last view: 6620 days
Posted on 01-25-06 01:29 AM Link | Quote
Just reminding you to put this in.

In case you forget.

Cuz it's not in yet.

Xkeeper
Took the board down in a blaze of glory, only to reveal how truly moronical ||bass is.


 





Since: 11-17-05
From: Henderson, Nevada

Last post: 6298 days
Last view: 6298 days
Skype
Posted on 01-25-06 02:11 AM Link | Quote
I'm not at home (away), and I've been lazy (and tired).

Besides, couldn't you just use htmlspecialchars() instead?
Zem
Permabanned. Flaming, trolling, reregistering.


 





Since: 11-18-05

Last post: 6620 days
Last view: 6620 days
Posted on 01-25-06 02:34 AM Link | Quote
I couldn't, but you could. And that would do the trick.
Add to favorites | Next newer thread | Next older thread
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.013 seconds; used 384.52 kB (max 470.84 kB)