Changeset:
15ed7818167c
https://sourceforge.net/p/mrbs/hg-code/ci/15ed7818167cb3264d77f120e929b4ea5ba3aa7d
Author:
Campbell Morrison <[email protected]>
Date:
Sun May 29 14:22:00 2016 +0100
Log message:
Fixed problem with week number link in mincals. See SF Bugs #357.
diffstat:
web/mincals.inc | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
diffs (20 lines):
diff -r ff1ed3365eb8 -r 15ed7818167c web/mincals.inc
--- a/web/mincals.inc Sun May 29 12:35:43 2016 +0100
+++ b/web/mincals.inc Sun May 29 14:22:00 2016 +0100
@@ -242,7 +242,15 @@
private function getDateLink($day, $month, $year)
{
$page = (func_num_args() > 3) ? func_get_arg(3) : $this->dmy;
- $result .= "$page.php?year=$year&month=$month&day=$day&area="
. $this->area;
+
+ // Sanitize the date: the day may be negative
+ $date = getdate(mktime(12, 0, 0, $month, $day, $year));
+
+ $result = "$page.php?" .
+ "year=" . $date['year'] . "&" .
+ "month=" . $date['mon'] . "&" .
+ "day=" . $date['mday'] . "&" .
+ "area=" . $this->area;
if (!empty($this->room))
{
------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits