Fix part 1 for XSS issue... call page like this:
[squirrelmail.git] / functions / date.php
index 84029fc18438b39d40ec82a441c9072c739905a4..c6b5db95be3318d3edfb5b679a0fedc8f65dd9a9 100644 (file)
@@ -398,7 +398,7 @@ function getTimeStamp($dateParts) {
      * Since the day of week is optional, this check is needed.
      */
      if (count($dateParts) <2) {
-        return 0;
+        return -1;
      }
 
     /* remove day of week */