]> git.p6c8.net - jirafeau/pcanterino.git/commitdiff
Write download stats before deleting one-time link
authorMax Hausch <max.hausch@helsinki-systems.de>
Tue, 29 Sep 2026 07:22:37 +0000 (09:22 +0200)
committerMax Hausch <max.hausch@helsinki-systems.de>
Tue, 29 Sep 2026 07:22:37 +0000 (09:22 +0200)
f.php

diff --git a/f.php b/f.php
index 870b4bdd8aa28b400d92f668c83ca784f1d7cfe6..954b58823ad288a2d905b638a226fb16d8b74176 100644 (file)
--- a/f.php
+++ b/f.php
@@ -274,12 +274,12 @@ else {
     }
 }
 
+jirafeau_write_download_stats($link_name, get_ip_address($cfg));
+
 if ($link['onetime'] == 'O') {
     jirafeau_delete_link($link_name);
 }
 
-jirafeau_write_download_stats($link_name, get_ip_address($cfg));
-
 exit;
 
 ?>

patrick-canterino.de