Skip to content

Commit 60fe579

Browse files
authored
Merge pull request #614 from benderl/chargelog-download
fix direct download
2 parents 02b468a + 6ec05f5 commit 60fe579

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

public/downloadChargeLog.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
echo json_encode(["error" => "Invalid 'year' parameter. A four-digit year, e.g., 2023, is expected."]);
3939
exit;
4040
}
41+
$year = intval($_GET["year"]);
4142

4243
// If the "month" parameter is provided and matches the regex for valid months (1-12), use it
4344
if (isset($_GET["month"])) {

0 commit comments

Comments
 (0)