Ticket #2137 (closed Bug: worksforme)

Opened 2 years ago

Last modified 18 months ago

string convert error "<span class="

Reported by: smilodon Owned by:
Priority: Normal Milestone:
Component: Project : MediaWiki+FCKeditor Version: SVN (FCKeditor)
Keywords: fixed Cc:

Description

If I place a template string:

 [http://xmswid/bugzilla/show_bug.cgi?id={{{id}}} Bug{{{id}}}]

it will be converted to

 [http://hello/bugzilla/show_bug.cgi?id=<span class= {{{id}}}"&gt;Bug{{{id}}}]

after preview or save.

tested in  http://mediawiki.fckeditor.net/index.php?title=Sandbox

Thanks!

Attachments

2137.patch Download (1.2 KB) - added by wwalc 2 years ago.

Change History

Changed 2 years ago by w.olchawa

  • keywords Confirmed added

Confirmed on both IE and FF2. Also happens when switching back and forth from wikitext to wysiwyg view.

Changed 2 years ago by wwalc

Changed 2 years ago by wwalc

  • keywords HasPatch added

I'm attaching a patch proposal. The main idea is that arguments shouldn't be processed like templates, but simply left as it is.

I'm just wondering whether leaving everything between {{{ and }}} will not break something else? That's why I'm not commitiing it yet.

If possible, test this patch and let us know if it works.

Changed 2 years ago by smilodon

I just test this patch,and find it is ok now!

Thanks!

And will it be merge to new release?

Changed 21 months ago by jeremysolt

This problem doesn't seem to be limited to templates, e.g., if I embed magic words into links this happens too.

[[{{SITENAME}}:About]] will get converted the same way. The patch does not seem to fix that.

Changed 19 months ago by wwalc

  • keywords Confirmed HasPatch removed
  • status changed from new to closed
  • resolution set to worksforme

Can't reproduce it in the latest release.

Changed 18 months ago by arczi

  • keywords fixed added

Fixed with ticket #2482

Note: See TracTickets for help on using tickets.