Page 1 of 1

s9ymarkup changes links

Posted: Sun Dec 23, 2007 10:47 am
by mattsches
I've just been hunting a strange bug and tracked it down to the built-in s9ymarkup plugin. I linked to a couple of mp3 files, and one of the links

Code: Select all

http://www.scene.org/file.php?file=/music/groups/ideology/id037/id037_04_-_cmc-medikamente.mp3
was displayed like that

Code: Select all

http://www.scene.org/file.php?file=/music/groups/ideology/id037/id037_04_-<u>cmc-medikamente.mp3
in frontend view.

I disabled the plugin for body and extended body, and things work fine. It seems that line 127

Code: Select all

$text = preg_replace('/\b_([\S ]+?)_\b/','<u>\1</u>',$text);
is a little bit confused by the unusual, yet correct (IMHO) link structure. Don't have the time to figure out a fix for this now, so if anyone could jump in on this ...?

- Mattsches

Re: s9ymarkup changes links

Posted: Sun Dec 23, 2007 12:35 pm
by garvinhicking
Hi!

This is a conceptual problem - either you alow formatting through "_xxx_", or you don't. You can't easily exclude links or html markup, how would you decide in which case the user might want this?

The only way to fix this would be to disable that s9ymarkup plugin, either completely or on a per-entry basis.

Best regards,
Garvin

Posted: Sun Dec 23, 2007 12:43 pm
by mattsches
Hmm, ok, this makes sense. I guess I can live with disabling the plugin for the extended entry body. Or maybe generally disabling it.