projects
/
squirrelmail.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Further XSS improvements plus a bugfix.
[squirrelmail.git]
/
functions
/
date.php
diff --git
a/functions/date.php
b/functions/date.php
index 558b477852183c946a3285a7dc545eba8920270d..a65308d6546fd0cbf5851e45c42da8168e513c43 100644
(file)
--- a/
functions/date.php
+++ b/
functions/date.php
@@
-58,9
+58,10
@@
function getGMTSeconds($stamp, $gmt) {
} else {
$neg = false;
}
-
+
+ $difference = substr($gmt, 2, 2);
$gmt = substr($gmt, 0, 2);
- $gmt =
$gmt
* 3600;
+ $gmt =
($gmt + ($difference / 60))
* 3600;
if ($neg == true) {
$gmt = "-$gmt";
} else {