{"action":"created","issue":{"url":"https://api.github.com/repos/joomla/joomla-cms/issues/5824","labels_url":"https://api.github.com/repos/joomla/joomla-cms/issues/5824/labels{/name}","comments_url":"https://api.github.com/repos/joomla/joomla-cms/issues/5824/comments","events_url":"https://api.github.com/repos/joomla/joomla-cms/issues/5824/events","html_url":"https://github.com/joomla/joomla-cms/issues/5824","id":54752503,"number":5824,"title":"JForm: TRIM filtering does not work properly and is not UTF8-safe","user":{"login":"Hackwar","id":313866,"avatar_url":"https://avatars.githubusercontent.com/u/313866?v=3","gravatar_id":"","url":"https://api.github.com/users/Hackwar","html_url":"https://github.com/Hackwar","followers_url":"https://api.github.com/users/Hackwar/followers","following_url":"https://api.github.com/users/Hackwar/following{/other_user}","gists_url":"https://api.github.com/users/Hackwar/gists{/gist_id}","starred_url":"https://api.github.com/users/Hackwar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hackwar/subscriptions","organizations_url":"https://api.github.com/users/Hackwar/orgs","repos_url":"https://api.github.com/users/Hackwar/repos","events_url":"https://api.github.com/users/Hackwar/events{/privacy}","received_events_url":"https://api.github.com/users/Hackwar/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/joomla/joomla-cms/labels/No+Code+Attached+Yet","name":"No Code Attached Yet","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":17,"created_at":"2015-01-19T11:22:13Z","updated_at":"2015-01-20T08:35:45Z","closed_at":null,"body":"As described in #5816, the TRIM filter in JForm is not working properly. A string that is surrounded by first normal spaces and then multi-byte-spaces will potentially only have the multi-byte-spaces removed, if at all, and the normal spaces will be left intact. Since trim() is not UTF8-safe, this will also break a bunch of UTF8 characters. Note: JString::trim() does not work with multi-byte-charactermaps either. Have fun with fixing this."},"comment":{"url":"https://api.github.com/repos/joomla/joomla-cms/issues/comments/70620452","html_url":"https://github.com/joomla/joomla-cms/issues/5824#issuecomment-70620452","issue_url":"https://api.github.com/repos/joomla/joomla-cms/issues/5824","id":70620452,"user":{"login":"infograf768","id":869724,"avatar_url":"https://avatars.githubusercontent.com/u/869724?v=3","gravatar_id":"","url":"https://api.github.com/users/infograf768","html_url":"https://github.com/infograf768","followers_url":"https://api.github.com/users/infograf768/followers","following_url":"https://api.github.com/users/infograf768/following{/other_user}","gists_url":"https://api.github.com/users/infograf768/gists{/gist_id}","starred_url":"https://api.github.com/users/infograf768/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/infograf768/subscriptions","organizations_url":"https://api.github.com/users/infograf768/orgs","repos_url":"https://api.github.com/users/infograf768/repos","events_url":"https://api.github.com/users/infograf768/events{/privacy}","received_events_url":"https://api.github.com/users/infograf768/received_events","type":"User","site_admin":false},"created_at":"2015-01-20T08:35:45Z","updated_at":"2015-01-20T08:35:45Z","body":"At what I read there, that would strip everything except basic printable ascii, which is not the purpose of TRIM here.\r\n"}}