Underline in URL converted to <u/>

Found a bug? Tell us!!
Post Reply
chrisbruzzi.com

Underline in URL converted to <u/>

Post by chrisbruzzi.com »

I tried to create a link to:

http://blog.flickr.com/flickrblog/2005/ ... ally_.html

and it saves in the database correctly, but on display it appears as:

http://blog.flickr.com/flickrblog/2005/ ... y<u/>.html

where the last underline is converted to a <u/>.

Any way around this?

-Chris
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Underline in URL converted to <u/>

Post by garvinhicking »

Are you sure it converts to '<u/>'? That is a completely invalid thing. Maybe you mean '</u>'? Can you give us the URL to your blog entry with that?

Tell me which s9y version you're using and which Markup Event Plugins you got installed.

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/
chrisbruzzi.com

Post by chrisbruzzi.com »

I have since switched off the WYSIWYG editor and no longer have the problem. Not sure if that was the cause.
chrisbruzzi.com

Post by chrisbruzzi.com »

But just FYI - I am on Serendipity 0.8-beta4.
Scytale

Post by Scytale »

The problem appeared over here as well. Looks like it's the BBCode plugin, which has some serious bugs in the 0.8 release version:

Code: Select all

[url=http://kqe.de/]Ihre Hoheit[/url]
got converted to
<a href="http://kqe.de/" target="<u>blank" class="bb-url">Ihre Hoheit</a>
Also, the RegEx parsing the URL tags will not match anymore for URLs containing characters like "~", "?" or "!". This is the most serious one, since it lets ugly [url =blah]Text[/url] appear in one's posts (in the archives as well, of course)...

(That space after "url" was intentional to keep phpBB from linking.)
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

There were serious XSS injections in the old BBCode plugin so we had to cut it down a lot.

Thanks to your input, I could add the '~' and '!' characters to be allowed in URLs. But it'S better to show \[url] output instead of allowing BBCode, right? :)

Your URL BTW only got faulty converted because of your "S9y Markup" plugin. Move that plugin before the BBCode plugin, then it should be alright. The s9y markup identifies words with "_" in front of it to be marked as underlined.

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/
Scytale
Posts: 4
Joined: Thu Apr 21, 2005 2:40 am
Contact:

Post by Scytale »

Concerning the BBCode problems, have a look at Getting rid of NL2BR and broken BBCode.
Post Reply