{"action":"created","issue":{"url":"https://api.github.com/repos/GetSimpleCMS/GetSimpleCMS/issues/1107","labels_url":"https://api.github.com/repos/GetSimpleCMS/GetSimpleCMS/issues/1107/labels{/name}","comments_url":"https://api.github.com/repos/GetSimpleCMS/GetSimpleCMS/issues/1107/comments","events_url":"https://api.github.com/repos/GetSimpleCMS/GetSimpleCMS/issues/1107/events","html_url":"https://github.com/GetSimpleCMS/GetSimpleCMS/issues/1107","id":113827426,"number":1107,"title":"Admin login form potentially redirects to wrong URL","user":{"login":"Manko10","id":911270,"avatar_url":"https://avatars.githubusercontent.com/u/911270?v=3","gravatar_id":"","url":"https://api.github.com/users/Manko10","html_url":"https://github.com/Manko10","followers_url":"https://api.github.com/users/Manko10/followers","following_url":"https://api.github.com/users/Manko10/following{/other_user}","gists_url":"https://api.github.com/users/Manko10/gists{/gist_id}","starred_url":"https://api.github.com/users/Manko10/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Manko10/subscriptions","organizations_url":"https://api.github.com/users/Manko10/orgs","repos_url":"https://api.github.com/users/Manko10/repos","events_url":"https://api.github.com/users/Manko10/events{/privacy}","received_events_url":"https://api.github.com/users/Manko10/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/GetSimpleCMS/GetSimpleCMS/labels/Bug","name":"Bug","color":"D01314"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/GetSimpleCMS/GetSimpleCMS/milestones/16","html_url":"https://github.com/GetSimpleCMS/GetSimpleCMS/milestones/3.3.8","labels_url":"https://api.github.com/repos/GetSimpleCMS/GetSimpleCMS/milestones/16/labels","id":1292537,"number":16,"title":"3.3.8","description":"","creator":{"login":"tablatronix","id":807787,"avatar_url":"https://avatars.githubusercontent.com/u/807787?v=3","gravatar_id":"","url":"https://api.github.com/users/tablatronix","html_url":"https://github.com/tablatronix","followers_url":"https://api.github.com/users/tablatronix/followers","following_url":"https://api.github.com/users/tablatronix/following{/other_user}","gists_url":"https://api.github.com/users/tablatronix/gists{/gist_id}","starred_url":"https://api.github.com/users/tablatronix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tablatronix/subscriptions","organizations_url":"https://api.github.com/users/tablatronix/orgs","repos_url":"https://api.github.com/users/tablatronix/repos","events_url":"https://api.github.com/users/tablatronix/events{/privacy}","received_events_url":"https://api.github.com/users/tablatronix/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":1,"state":"open","created_at":"2015-09-06T14:44:42Z","updated_at":"2015-10-28T16:16:08Z","due_on":null,"closed_at":null},"comments":7,"created_at":"2015-10-28T14:00:29Z","updated_at":"2015-10-28T21:10:53Z","closed_at":null,"body":"The admin login from in index.php looks like this:\r\n\r\n    <form class=\"login\" action=\"<?php echo myself(false).'?'. htmlentities($_SERVER['QUERY_STRING'], ENT_QUOTES); ?>\" method=\"post\">\r\n\r\nwhich means it will effectively write `\"admin?\"` into the action attribute when you request the page without any parameters. This only works if the URL is exactly http://example.com/admin, but not http://example.com/admin/.\r\n\r\nHowever, admin may often rewrite to admin/ due to .htaccess redirects. This results in the form being submitted to http://example.com/admin/admin? which results in a 404 response.\r\n\r\nI'd suggest prepending `$SITEURL` to `myself()` for fixing this issue."},"comment":{"url":"https://api.github.com/repos/GetSimpleCMS/GetSimpleCMS/issues/comments/151991139","html_url":"https://github.com/GetSimpleCMS/GetSimpleCMS/issues/1107#issuecomment-151991139","issue_url":"https://api.github.com/repos/GetSimpleCMS/GetSimpleCMS/issues/1107","id":151991139,"user":{"login":"Manko10","id":911270,"avatar_url":"https://avatars.githubusercontent.com/u/911270?v=3","gravatar_id":"","url":"https://api.github.com/users/Manko10","html_url":"https://github.com/Manko10","followers_url":"https://api.github.com/users/Manko10/followers","following_url":"https://api.github.com/users/Manko10/following{/other_user}","gists_url":"https://api.github.com/users/Manko10/gists{/gist_id}","starred_url":"https://api.github.com/users/Manko10/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Manko10/subscriptions","organizations_url":"https://api.github.com/users/Manko10/orgs","repos_url":"https://api.github.com/users/Manko10/repos","events_url":"https://api.github.com/users/Manko10/events{/privacy}","received_events_url":"https://api.github.com/users/Manko10/received_events","type":"User","site_admin":false},"created_at":"2015-10-28T21:10:53Z","updated_at":"2015-10-28T21:10:53Z","body":"SCRIPT_FILENAME contains the absolute internal file path."}}