s9ymarkup changes links

Found a bug? Tell us!!
Post Reply
mattsches
Regular
Posts: 440
Joined: Sat Nov 05, 2005 9:35 pm
Location: Wiesbaden, Germany
Contact:

s9ymarkup changes links

Post 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
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: s9ymarkup changes links

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
mattsches
Regular
Posts: 440
Joined: Sat Nov 05, 2005 9:35 pm
Location: Wiesbaden, Germany
Contact:

Post 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.
Post Reply