{"action":"created","issue":{"url":"https://api.github.com/repos/phpseclib/phpseclib/issues/778","labels_url":"https://api.github.com/repos/phpseclib/phpseclib/issues/778/labels{/name}","comments_url":"https://api.github.com/repos/phpseclib/phpseclib/issues/778/comments","events_url":"https://api.github.com/repos/phpseclib/phpseclib/issues/778/events","html_url":"https://github.com/phpseclib/phpseclib/issues/778","id":101456210,"number":778,"title":"SFTP stream wrapper doesn't support hashes in file name","user":{"login":"PVince81","id":277525,"avatar_url":"https://avatars.githubusercontent.com/u/277525?v=3","gravatar_id":"","url":"https://api.github.com/users/PVince81","html_url":"https://github.com/PVince81","followers_url":"https://api.github.com/users/PVince81/followers","following_url":"https://api.github.com/users/PVince81/following{/other_user}","gists_url":"https://api.github.com/users/PVince81/gists{/gist_id}","starred_url":"https://api.github.com/users/PVince81/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PVince81/subscriptions","organizations_url":"https://api.github.com/users/PVince81/orgs","repos_url":"https://api.github.com/users/PVince81/repos","events_url":"https://api.github.com/users/PVince81/events{/privacy}","received_events_url":"https://api.github.com/users/PVince81/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/phpseclib/phpseclib/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-17T16:09:30Z","updated_at":"2015-08-18T14:49:09Z","closed_at":null,"body":"Passing a file name with a hash inside like \"/somepath/#somefile.txt\", the hash part gets stripped away by the subsequent call to `parseurl`.\r\n\r\nhttps://github.com/phpseclib/phpseclib/blob/master/phpseclib/Net/SFTP/Stream.php#L251\r\n\r\nFurthermore passing a URL-encoded path doesn't work either.\r\nIf \"/somepath/%23somefile.txt\" is passed, it will just create a remote file called \"%23somefile.txt\".\r\n"},"comment":{"url":"https://api.github.com/repos/phpseclib/phpseclib/issues/comments/132237564","html_url":"https://github.com/phpseclib/phpseclib/issues/778#issuecomment-132237564","issue_url":"https://api.github.com/repos/phpseclib/phpseclib/issues/778","id":132237564,"user":{"login":"bantu","id":189375,"avatar_url":"https://avatars.githubusercontent.com/u/189375?v=3","gravatar_id":"","url":"https://api.github.com/users/bantu","html_url":"https://github.com/bantu","followers_url":"https://api.github.com/users/bantu/followers","following_url":"https://api.github.com/users/bantu/following{/other_user}","gists_url":"https://api.github.com/users/bantu/gists{/gist_id}","starred_url":"https://api.github.com/users/bantu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bantu/subscriptions","organizations_url":"https://api.github.com/users/bantu/orgs","repos_url":"https://api.github.com/users/bantu/repos","events_url":"https://api.github.com/users/bantu/events{/privacy}","received_events_url":"https://api.github.com/users/bantu/received_events","type":"User","site_admin":false},"created_at":"2015-08-18T14:49:09Z","updated_at":"2015-08-18T14:49:09Z","body":"I think the behaviour should be made consistent with built-in streams such as `file://`."}}