SMF Development > Bug Reports
[SMF 2.0.2] WYSIWYG editor wrongly formates URL without the "http" prefix
Masterd:
I'm sorry if this has been reported before but it seems that I can't find a topic related to it.
Oh boy, I'm getting old. I found this out when I was testing RC3 few years ago (or was it a year ago?) when I had some rather serious business (well, it depends on your definition of serious :P) and I wrote it down so I can report it later. Unfortunately I forgot about this until today.
Replication was successful on several sites running the latest SMF 2.0.2. It is replicable on this site. Simply, if you enable WYSIWYG and then enter an URL without the "http" prefix, for example: www.something.com, it will be wrongly formated so now it will link to http://www.forum.com/www.something.com.
Arantor:
That's not really a bug in the editor, that's how HTML actually works if you do a link without the http in front of it...
FrizzleFried:
I think he's saying it's not just adding the http:// but an additional URL...?
Masterd:
--- Quote from: Arantor on June 27, 2012, 12:21:30 PM ---That's not really a bug in the editor, that's how HTML actually works if you do a link without the http in front of it...
--- End quote ---
To be honest, I never actually took a look at the WYSIWYG editor's code but I always thought it was coded to "apprehend" such things.
Arantor:
Why should it, when the browser won't anyway?
--- Quote from: FrizzleFried on June 27, 2012, 12:26:52 PM ---I think he's saying it's not just adding the http:// but an additional URL...?
--- End quote ---
Yes, it'll put the forum's domain (and possibly path, circumstance depending) in front of it - because that's how HTML itself deals with such things.
Navigation
[0] Message Index
[#] Next page
Go to full version