Welcome to Geeklog, Anonymous Saturday, December 21 2024 @ 08:16 pm EST
Geeklog Forums
Undesired parsing
bduke
When I viewed the HTML source, however, I noticed that the URLs in the anchor tags were passed through the text parser so:
HREF="test/documents/foo.html"
was changed to this:
HREF="test/do*censored*ents/foo.html"
One immediate fix would be to add spaces around the words in the censored list defined in config.php (or just disable censoring). This would be a temporary fix.
The parser shouldn't try to censor words within words (or you end up with something like the above). In addition, it would probably be a good idea to have the parser ignore text that is not displayed.
But that's not all!
When I try to go back and edit the static page, the text is mangled once again.
$686.00-> 6.00
$100 -> 0
Note that the static page has the correct values when it is displayed. So, something happens after the admin presses the edit button. The "$" are not being escaped properly.
When I previewed this story, the parser performed the same substitutions on the expressions. But, when I used HTML Formatted Post Mode the "$" were parsed correctly. So, the problem is limited to Plain Text Mode.
If this is something I missed in the archives I apologize, but I couldn't find anyone else with this problem.
Is anyone else seeing similar behavior?
Dirk
There have been some complaints about the censoring function lately, but I wasn't aware that it also tried to censor URLs. That is certainly wrong.
The $ is another common problem and is being addressed currently (i.e. will be fixed with the next release).
bye, Dirk
dreamscape
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content