Skip to content
Browse files

Fix setting time format in preferences page

  • Loading branch information...
1 parent 7b27732 commit 2a5657581cc895a12f1e5a37abadf7229d086473 Jason Oster committed May 20, 2009
Showing with 4 additions and 4 deletions.
  1. +4 −4 preferences.php
View
8 preferences.php
@@ -22,14 +22,14 @@
$startdays = array ('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday');
if ($action == 'setcookie') {
- $cookie_language = $_POST['cookie_language'];
+ $cookie_language = urldecode($_POST['cookie_language']);
$cookie_cpath = $_POST['cpath'];
$cookie_calendar = $_POST['cookie_calendar'];
$cookie_view = $_POST['cookie_view'];
$cookie_style = $_POST['cookie_style'];
$cookie_startday = $_POST['cookie_startday'];
$cookie_time = $_POST['cookie_time'];
- $cookie_timeformat = $_POST['cookie_timeformat'];
+ $cookie_timeformat = urldecode($_POST['cookie_timeformat']);
$cookie_endtime = $_POST['cookie_endtime'];
$cookie_timezone = $_POST['cookie_timezone'];
$cookie_unset = @$_POST['unset'];
@@ -128,7 +128,7 @@
// select for time
$time_select = '';
-for ($i = 000; $i <= 2400; $i += 100) {
+for ($i = 0; $i <= 2400; $i += 100) {
$s = sprintf("%04d", $i);
$time_select .= '<option value="'.$s.'"';
if ($s == $cookie_time) {
@@ -138,7 +138,7 @@
}
$endtime_select = '';
-for ($i = 000; $i <= 2400; $i += 100) {
+for ($i = 0; $i <= 2400; $i += 100) {
$s = sprintf("%04d", $i);
$endtime_select .= '<option value="'.$s.'"';
if ($s == $cookie_endtime) {

0 comments on commit 2a56575

Please sign in to comment.
Something went wrong with that request. Please try again.