bigin / ItemManager_2.0

ItemManager (IM) is a simple flat-file framework for GetSimple-CMS that allows you to develop completely customizable PHP applications bundled with GetSimple-CMS.
MIT License
5 stars 3 forks source link

Bug with a broken characters #15

Open mittus opened 5 years ago

mittus commented 5 years ago

If i paste in the some input character "", I have broken item.

screenshot_34 screenshot_35 screenshot_36 If I click on "active", i get empty page. But I can delete that item. screenshot_37

bigin commented 5 years ago

I can't reproduce that.

screenshot 2018-12-03 10 07 15

mittus commented 5 years ago

Github change bad symbol to normal. Can you see that file? https://github.com/mittus/ItemManager_2.0/blob/patch-1/bad_symbol

bigin commented 5 years ago

I don't see any symbol there, I can't copy anything from it.

bigin commented 5 years ago

Please upload the respective xml file: /data/imanager/items/..im.item.xml

thx

mittus commented 5 years ago

https://github.com/mittus/ItemManager_2.0/blob/master/7.1.im.item.xml screenshot_38

bigin commented 5 years ago

Thank you. It looks like not all UTF8 valid chars are accepted in a XML document http://www.w3.org/TR/REC-xml/#charsets.

bigin commented 5 years ago

A possible solution would be: preg_replace ('/[^\x{0009}\x{000a}\x{000d}\x{0020}-\x{D7FF}\x{E000}-\x{FFFD}]+/u', ' ', $item_name);