Last modified: 2010-06-10 01:16:07 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T25067, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 23067 - FCK integration breaks page content because of quoting
FCK integration breaks page content because of quoting
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
SemanticForms (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Yaron Koren
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-04-06 13:56 UTC by chrisv
Modified: 2010-06-10 01:16 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description chrisv 2010-04-06 13:56:34 UTC
When using FCK Editor/WYSIWYG extension in conjunction with Semantic Forms, editing a page through the formedit action will break the page markup because all double quotes are replaced by """. This will destroy for example the following markup:

{|class="wikitable
!head
|value
|}

<source lang="php">
 // some source here
 // note this will work only with GesHI extension
</source>

= Steps to reproduce =

1.) install Semantic Mediawiki, Semantic Forms and WYSIWYG extension
2.) edit page through form
3.) drop into Wikitext mode
4.) paste the following markup:
{|class="wikitable"
!head
|value
|}
5.) save the page
6.) check out source of page and see that 
{|class="wikitable"
has been changed to 
{|class=&quot;wikitable&quot;
which is not correct wiki markup of course

= Source code hint =

Quoting appears in SemanticForms/includes/SF_FormPrinter.inc line 1205:

 $free_text = str_replace( '"', '&quot;', $free_text );

Commenting out this line does solve the problem, but may cause other problems (I did not yet see any, but YMMV).
Comment 1 Yaron Koren 2010-06-10 01:16:07 UTC
This line was removed in version 1.9.1 of SF; thanks.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links