{"action":"created","issue":{"url":"https://api.github.com/repos/orsee/orsee/issues/11","labels_url":"https://api.github.com/repos/orsee/orsee/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/orsee/orsee/issues/11/comments","events_url":"https://api.github.com/repos/orsee/orsee/issues/11/events","html_url":"https://github.com/orsee/orsee/pull/11","id":110712541,"number":11,"title":"Bug fix in redirect function","user":{"login":"kfarr2","id":7905314,"avatar_url":"https://avatars.githubusercontent.com/u/7905314?v=3","gravatar_id":"","url":"https://api.github.com/users/kfarr2","html_url":"https://github.com/kfarr2","followers_url":"https://api.github.com/users/kfarr2/followers","following_url":"https://api.github.com/users/kfarr2/following{/other_user}","gists_url":"https://api.github.com/users/kfarr2/gists{/gist_id}","starred_url":"https://api.github.com/users/kfarr2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kfarr2/subscriptions","organizations_url":"https://api.github.com/users/kfarr2/orgs","repos_url":"https://api.github.com/users/kfarr2/repos","events_url":"https://api.github.com/users/kfarr2/events{/privacy}","received_events_url":"https://api.github.com/users/kfarr2/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-09T18:24:31Z","updated_at":"2015-10-09T21:28:16Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/orsee/orsee/pulls/11","html_url":"https://github.com/orsee/orsee/pull/11","diff_url":"https://github.com/orsee/orsee/pull/11.diff","patch_url":"https://github.com/orsee/orsee/pull/11.patch"},"body":"without the urldecode(); function, the initial redirect after admin login tries to go from\r\n\r\n    /admin/admin_login.php?requested_url=admin/index.php%3f\r\n\r\nto\r\n\r\n    /admin%3findex.php%3f\r\n\r\nwhich yeilds an error."},"comment":{"url":"https://api.github.com/repos/orsee/orsee/issues/comments/146989828","html_url":"https://github.com/orsee/orsee/pull/11#issuecomment-146989828","issue_url":"https://api.github.com/repos/orsee/orsee/issues/11","id":146989828,"user":{"login":"kfarr2","id":7905314,"avatar_url":"https://avatars.githubusercontent.com/u/7905314?v=3","gravatar_id":"","url":"https://api.github.com/users/kfarr2","html_url":"https://github.com/kfarr2","followers_url":"https://api.github.com/users/kfarr2/followers","following_url":"https://api.github.com/users/kfarr2/following{/other_user}","gists_url":"https://api.github.com/users/kfarr2/gists{/gist_id}","starred_url":"https://api.github.com/users/kfarr2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kfarr2/subscriptions","organizations_url":"https://api.github.com/users/kfarr2/orgs","repos_url":"https://api.github.com/users/kfarr2/repos","events_url":"https://api.github.com/users/kfarr2/events{/privacy}","received_events_url":"https://api.github.com/users/kfarr2/received_events","type":"User","site_admin":false},"created_at":"2015-10-09T21:28:16Z","updated_at":"2015-10-09T21:28:16Z","body":"Hi Ben,\r\n\r\nThanks for the quick response.\r\nSo after poking around a bit, I've discovered that I can only reproduce this error when attempting to log  in to our live site. \r\nAlso, I made a mistake above and gave you the incorrect URLs. Here are the *actual* URLs I'm getting.\r\n\r\n    /admin/admin_login.php?requested_url=admin%252Findex.php%253F\r\n    /admin%2Findex.php%3F\r\n\r\nAfter I discovered the issue only happened on the live site, and that I had given you the incorrect URL's, I did a little more googling and found that this issue can be attributed to a bug in Apache that causes slashes to be double encoded. More info on this at http://stackoverflow.com/questions/29049596/url-slash-get-double-encoded-changed-to-252f-instead-of-2f\r\n\r\nChances are, this is more of a problem on our end than yours, however, the threads I referenced all had at least one user suggesting `urldecode();` as a fix (and it does fix the issue for me without any consequences on both my local, and the remote instance, even without the double encoding bug). So I think it may be worth considering adding to the redirect function, or listing in the documentation as a potential problem/solution.\r\n\r\nOther options would be either updating Apache, or adding\r\n \r\n    RewriteRule             /(.*)   http://localhost/$1        [NE,P,L]\r\n\r\nto the .htaccess file.\r\n\r\nHopefully that helps.\r\nThanks again!\r\n\r\n-Konstantin"}}