This is a bug report for phpScheduleIt 1.2.8, under PHP 5.2.5 running in ISAPI mode on IIS 6.0 on Windows Server 2003. SQL server is Microsoft SQL Server Express Edition 2005. I have examined the source code and confirmed that it still exists on 1.2.10.
Under Internet Explorer, hitting the enter key to submit a form does not have the same effect as clicking the 'submit' button - it does not include the submit button's value in the posted form data.
This means that the login form in index.php cannot be submitted without clicking the log in button, as it checks for a particular POST variable. Many people are used to being able to submit forms by simply hitting return, particularly on login pages.
The patch below fixes this behaviour by changing index.php to check for a POST form, rather than a specific field in that form.
--- index.php-ORIG Sat Sep 27 11:36:48 2008
+++ index.php Sat Sep 27 11:36:11 2008
@@ -26,7 +26,7 @@
if (isset($_GET['logout'])) {
$auth->doLogout();
}
-else if (isset($_POST['login'])) {
+else if ($_SERVER['REQUEST_METHOD'] === 'POST') {
$msg = $auth->doLogin($_POST['email'], $_POST['password'], (isset($_POST['setCookie']) ? 'y' : null), false, $resume, $_POST['language']);
}
else if (isset($_COOKIE['ID'])) {