{"action":"created","issue":{"url":"https://api.github.com/repos/mholt/caddy/issues/659","repository_url":"https://api.github.com/repos/mholt/caddy","labels_url":"https://api.github.com/repos/mholt/caddy/issues/659/labels{/name}","comments_url":"https://api.github.com/repos/mholt/caddy/issues/659/comments","events_url":"https://api.github.com/repos/mholt/caddy/issues/659/events","html_url":"https://github.com/mholt/caddy/issues/659","id":138845200,"number":659,"title":"Hash breaks rewrite","user":{"login":"tewe","id":645412,"avatar_url":"https://avatars.githubusercontent.com/u/645412?v=3","gravatar_id":"","url":"https://api.github.com/users/tewe","html_url":"https://github.com/tewe","followers_url":"https://api.github.com/users/tewe/followers","following_url":"https://api.github.com/users/tewe/following{/other_user}","gists_url":"https://api.github.com/users/tewe/gists{/gist_id}","starred_url":"https://api.github.com/users/tewe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tewe/subscriptions","organizations_url":"https://api.github.com/users/tewe/orgs","repos_url":"https://api.github.com/users/tewe/repos","events_url":"https://api.github.com/users/tewe/events{/privacy}","received_events_url":"https://api.github.com/users/tewe/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mholt/caddy/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-03-06T22:25:42Z","updated_at":"2016-03-07T07:24:44Z","closed_at":null,"body":"I replaced Apache's mod_userdir with Caddy, for a single user:\r\n\r\n\trewrite /~tewe {\r\n\t\tr  (.*)\r\n\t\tto /{1}\r\n\t}\r\n\r\nThis works fine unless file names contain the # character. Those are only accessible using the actual path.\r\n\r\nI confirmed that the regex matched by replacing it with \"(#.*)\".\r\n\r\nIf the filename starts with #, I get served a directory listing (browse is on), so somewhere the string seems to get split at that character."},"comment":{"url":"https://api.github.com/repos/mholt/caddy/issues/comments/193135136","html_url":"https://github.com/mholt/caddy/issues/659#issuecomment-193135136","issue_url":"https://api.github.com/repos/mholt/caddy/issues/659","id":193135136,"user":{"login":"abiosoft","id":240448,"avatar_url":"https://avatars.githubusercontent.com/u/240448?v=3","gravatar_id":"","url":"https://api.github.com/users/abiosoft","html_url":"https://github.com/abiosoft","followers_url":"https://api.github.com/users/abiosoft/followers","following_url":"https://api.github.com/users/abiosoft/following{/other_user}","gists_url":"https://api.github.com/users/abiosoft/gists{/gist_id}","starred_url":"https://api.github.com/users/abiosoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abiosoft/subscriptions","organizations_url":"https://api.github.com/users/abiosoft/orgs","repos_url":"https://api.github.com/users/abiosoft/repos","events_url":"https://api.github.com/users/abiosoft/events{/privacy}","received_events_url":"https://api.github.com/users/abiosoft/received_events","type":"User","site_admin":false},"created_at":"2016-03-07T07:24:44Z","updated_at":"2016-03-07T07:24:44Z","body":"Oops. Having a look."}}