Create Post bug, weird formating if linked url has two dashes in a row
|Reported by:||bobmorris60||Owned by:|
I've found what I think is a weird bug in the editor in WP. Basically, if you create a link in a post, and the url to the link has two dashes in a row, it mangles the post, adding the text after the link to the top of the post as well as under it. Seriously... What's odder, the post looks fine in the editor, but is mangled in the preview window and when it appears on the blog.
This is repeatable in both WordPress.org and WordPress.com. It happened to me in versions previous to 2.1, and took me quite a while to figure out.
An example, this url (note the two dashes) created a mangled post in the editor when creating a link with it.
I then used tinyurl for that url and the post then displayed fine. There's at least one news site (I forget which) where the urls always end with two dashes and I always have to use tinyurl.
Can anyone else duplicate this?