phpManufakturHeirs / SyncData2

SyncData2 - backup, restore and synchronizing of WebsiteBaker and LEPTON CMS installations
MIT License
0 stars 0 forks source link

Quots in WYSIWYG = error in sync #2

Open webbird opened 9 years ago

webbird commented 9 years ago

Using the sync client, having " in WYSIWYG content results import errors. Reason is that unsanitizeText() in Utils.php replaces all occurences of " with real ", which breaks the JSON contents.

Dunno if this is a BlackCat CMS or a global issue.

webbird commented 9 years ago

I hopefully fixed this. Reason seems to be that "our" CKEditor4 converts " to " while with LEPTON and WB quotes are stored in the DB "as is". I added a check to Check.php especially for BlackCat CMS to "convert back" the quotes before storing the changes. As this fix concerns sync (actions createsync and sync) only, there may still be problems with backup/restore.