{"action":"created","issue":{"url":"https://api.github.com/repos/owncloud/core/issues/13462","labels_url":"https://api.github.com/repos/owncloud/core/issues/13462/labels{/name}","comments_url":"https://api.github.com/repos/owncloud/core/issues/13462/comments","events_url":"https://api.github.com/repos/owncloud/core/issues/13462/events","html_url":"https://github.com/owncloud/core/issues/13462","id":54763331,"number":13462,"title":"\\OC_Util::isValidFileName has to be manually called for file actions","user":{"login":"LukasReschke","id":878997,"avatar_url":"https://avatars.githubusercontent.com/u/878997?v=3","gravatar_id":"","url":"https://api.github.com/users/LukasReschke","html_url":"https://github.com/LukasReschke","followers_url":"https://api.github.com/users/LukasReschke/followers","following_url":"https://api.github.com/users/LukasReschke/following{/other_user}","gists_url":"https://api.github.com/users/LukasReschke/gists{/gist_id}","starred_url":"https://api.github.com/users/LukasReschke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LukasReschke/subscriptions","organizations_url":"https://api.github.com/users/LukasReschke/orgs","repos_url":"https://api.github.com/users/LukasReschke/repos","events_url":"https://api.github.com/users/LukasReschke/events{/privacy}","received_events_url":"https://api.github.com/users/LukasReschke/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/owncloud/core/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/owncloud/core/labels/Discussion","name":"Discussion","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-19T13:28:43Z","updated_at":"2015-01-19T13:45:12Z","closed_at":null,"body":"Some files such as `newfolder.php` or `newfile.php` contain the following code snippet:\r\n\r\n```php\r\nif(!OCP\\Util::isValidFileName($foldername)) {\r\n\t$result['data'] = array('message' => (string)$l10n->t(\"Invalid name, '\\\\', '/', '<', '>', ':', '\\\"', '|', '?' and '*' are not allowed.\"));\r\n\tOCP\\JSON::error($result);\r\n\texit();\r\n}\r\n```\r\n\r\nI seriously wonder why this check is opt-in and not automatically enforced as are other checks in `\\OC\\Files\\View::basicOperation`\r\n\r\n@icewind1991 FYI"},"comment":{"url":"https://api.github.com/repos/owncloud/core/issues/comments/70493944","html_url":"https://github.com/owncloud/core/issues/13462#issuecomment-70493944","issue_url":"https://api.github.com/repos/owncloud/core/issues/13462","id":70493944,"user":{"login":"DeepDiver1975","id":1005065,"avatar_url":"https://avatars.githubusercontent.com/u/1005065?v=3","gravatar_id":"","url":"https://api.github.com/users/DeepDiver1975","html_url":"https://github.com/DeepDiver1975","followers_url":"https://api.github.com/users/DeepDiver1975/followers","following_url":"https://api.github.com/users/DeepDiver1975/following{/other_user}","gists_url":"https://api.github.com/users/DeepDiver1975/gists{/gist_id}","starred_url":"https://api.github.com/users/DeepDiver1975/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DeepDiver1975/subscriptions","organizations_url":"https://api.github.com/users/DeepDiver1975/orgs","repos_url":"https://api.github.com/users/DeepDiver1975/repos","events_url":"https://api.github.com/users/DeepDiver1975/events{/privacy}","received_events_url":"https://api.github.com/users/DeepDiver1975/received_events","type":"User","site_admin":false},"created_at":"2015-01-19T13:45:12Z","updated_at":"2015-01-19T13:45:12Z","body":"within 8.1 we shall implement an isValidFileName/isValidPath to the storage interface. Valid file and path names are storage specific. there is already a tech dept on this afaik ..."}}