{"action":"created","issue":{"url":"https://api.github.com/repos/gitlabhq/gitlabhq/issues/9751","labels_url":"https://api.github.com/repos/gitlabhq/gitlabhq/issues/9751/labels{/name}","comments_url":"https://api.github.com/repos/gitlabhq/gitlabhq/issues/9751/comments","events_url":"https://api.github.com/repos/gitlabhq/gitlabhq/issues/9751/events","html_url":"https://github.com/gitlabhq/gitlabhq/pull/9751","id":112241778,"number":9751,"title":"Add ability to create directories in the editor","user":{"login":"binford2k","id":1392917,"avatar_url":"https://avatars.githubusercontent.com/u/1392917?v=3","gravatar_id":"","url":"https://api.github.com/users/binford2k","html_url":"https://github.com/binford2k","followers_url":"https://api.github.com/users/binford2k/followers","following_url":"https://api.github.com/users/binford2k/following{/other_user}","gists_url":"https://api.github.com/users/binford2k/gists{/gist_id}","starred_url":"https://api.github.com/users/binford2k/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/binford2k/subscriptions","organizations_url":"https://api.github.com/users/binford2k/orgs","repos_url":"https://api.github.com/users/binford2k/repos","events_url":"https://api.github.com/users/binford2k/events{/privacy}","received_events_url":"https://api.github.com/users/binford2k/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-10-19T21:58:02Z","updated_at":"2015-10-29T14:51:52Z","closed_at":"2015-10-29T14:51:52Z","pull_request":{"url":"https://api.github.com/repos/gitlabhq/gitlabhq/pulls/9751","html_url":"https://github.com/gitlabhq/gitlabhq/pull/9751","diff_url":"https://github.com/gitlabhq/gitlabhq/pull/9751.diff","patch_url":"https://github.com/gitlabhq/gitlabhq/pull/9751.patch"},"body":"Simply type a name with a `/` directory separator and new directories\r\nwill be created. This does not do the fancy UI work that github.com\r\ndoes, but it will get the job done.\r\n\r\nI could not find tests for file creation, so I didn't add a test for\r\nthis slight behaviour modification. I did test directory traversals\r\nthough, using both absolute paths like `/tmp/foo.txt` and relative paths\r\nlike `../../foo.txt`. Neither case escaped the repository, though\r\nattempting to traverse with a relative path resulted in a 500 error that\r\ndid not affect application stability upon reload."},"comment":{"url":"https://api.github.com/repos/gitlabhq/gitlabhq/issues/comments/152203975","html_url":"https://github.com/gitlabhq/gitlabhq/pull/9751#issuecomment-152203975","issue_url":"https://api.github.com/repos/gitlabhq/gitlabhq/issues/9751","id":152203975,"user":{"login":"DouweM","id":159434,"avatar_url":"https://avatars.githubusercontent.com/u/159434?v=3","gravatar_id":"","url":"https://api.github.com/users/DouweM","html_url":"https://github.com/DouweM","followers_url":"https://api.github.com/users/DouweM/followers","following_url":"https://api.github.com/users/DouweM/following{/other_user}","gists_url":"https://api.github.com/users/DouweM/gists{/gist_id}","starred_url":"https://api.github.com/users/DouweM/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DouweM/subscriptions","organizations_url":"https://api.github.com/users/DouweM/orgs","repos_url":"https://api.github.com/users/DouweM/repos","events_url":"https://api.github.com/users/DouweM/events{/privacy}","received_events_url":"https://api.github.com/users/DouweM/received_events","type":"User","site_admin":false},"created_at":"2015-10-29T14:51:52Z","updated_at":"2015-10-29T14:51:52Z","body":"I squashed and added your name to the changelog entry: 0ea38dc519b86d2bd2e14f1df1baf0fffc043af6."}}