Opened 16 years ago
Closed 13 years ago
#2544 closed Bug (invalid)
& links converting to &
Reported by: | ckool | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | Project : MediaWiki+FCKeditor | Version: | SVN (FCKeditor) - Retired |
Keywords: | Cc: |
Description
Creating a link as follows: www.aaa.com?var=1&var=2&var=3 generates the next source code: <a href="http://www.aaa.com?var=1&var=2&var=3">
The problem happens when you put "&" instead "&" in the links, (www.aaa.com?var=1&var=2&var=3) then the source code is as follows: <a href="http://www.aaa.com?var=1&amp;var=2&amp;var=3">
it doesn't checks if the & is already writed therefore it replace '&' per '&' resulting '&amp;'
this happens in IE6 and FF3 (didn't try other browsers)
Change History (5)
comment:1 Changed 16 years ago by
comment:2 follow-up: 3 Changed 16 years ago by
Component: | General → Project : MediaWiki+FCKeditor |
---|---|
Keywords: | Confirmed added |
Version: | → SVN |
You're right. Current SVN parser changes
[[www.aboutonet.pl?a=b&c=d&e=f]] [http://www.onet.pl?a=b&c=d desc&desc]
to
[[Www.aboutonet.pl?a=b&c=d&e=f|Www.aboutonet.pl?a=b&c=d&e=f]] [http://www.onet.pl?a=b&c=d desc&desc]
but links still work.
comment:3 Changed 16 years ago by
The first time the parser transforms the text, the link will work, but after that things get dicey.
Replying to arczi:
You're right. Current SVN parser changes
[[www.aboutonet.pl?a=b&c=d&e=f]] [http://www.onet.pl?a=b&c=d desc&desc]to
[[Www.aboutonet.pl?a=b&c=d&e=f|Www.aboutonet.pl?a=b&c=d&e=f]] [http://www.onet.pl?a=b&c=d desc&desc]but links still work.
comment:4 Changed 15 years ago by
You can fix this by changing this line: http://dev.fckeditor.net/browser/MediaWiki/trunk/plugins/mediawiki/fckplugin.js#L637. You need to change:
stringBuilder.push( htmlNode.innerHTML ) ;
to:
stringBuilder.push( FCKTools.HTMLDecode(htmlNode.innerHTML).replace(/fckLR/g,'\r\n') ) ;
This probably causes other problems with wikitext in ref tags but since most of the refs we deal with are just links, it works for us.
comment:5 Changed 13 years ago by
Resolution: | → invalid |
---|---|
Status: | confirmed → closed |
Since FCKeditor is no longer supported and was replaced with CKEditor, active development of the MediaWiki extension and support for it are also finished.
I’m closing this ticket as it is no longer valid.
I found something similar, in that any ampersand '&' between opening and closing <ref> tags gets repetitively encoded from '&' to '&' with each switch between source and wysiwyg mode, so the first time it is '<ref>This & That</ref>', then '<ref>This & That</ref>' then '<ref>This &amp; That</ref>' I do not see this outside of the ref tags.