Page 1 of 1

Underline in URL converted to <u/>

Posted: Fri Mar 25, 2005 3:13 am
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

Re: Underline in URL converted to <u/>

Posted: Fri Mar 25, 2005 11:50 pm
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

Posted: Wed Mar 30, 2005 9:28 pm
by chrisbruzzi.com
I have since switched off the WYSIWYG editor and no longer have the problem. Not sure if that was the cause.

Posted: Wed Mar 30, 2005 9:30 pm
by chrisbruzzi.com
But just FYI - I am on Serendipity 0.8-beta4.

Posted: Wed Apr 20, 2005 8:30 pm
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.)

Posted: Thu Apr 21, 2005 10:09 am
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

Posted: Thu Apr 28, 2005 5:28 pm
by Scytale
Concerning the BBCode problems, have a look at Getting rid of NL2BR and broken BBCode.