aboutsummaryrefslogtreecommitdiff
path: root/p
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2025-10-04 14:32:18 +0200
committerGravatar GitHub <noreply@github.com> 2025-10-04 14:32:18 +0200
commit57e1a375cbd2db9741ff19167813344f8eff5772 (patch)
tree741fc3820a205ab3ea84a03f6b72615dd8238f99 /p
parentbe49726ebb700aca030004d367c029082cfc6427 (diff)
Strengthen some crypto (#8061)
For login, tokens, nonces
Diffstat (limited to 'p')
-rw-r--r--p/f.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/p/f.php b/p/f.php
index 604081dd0..d6180d8c8 100644
--- a/p/f.php
+++ b/p/f.php
@@ -39,7 +39,7 @@ $txt_mtime = @filemtime($txt) ?: 0;
$is_custom_favicon = $ico_mtime != false && $txt_mtime == false;
-if (($ico_mtime == false || $ico_mtime < $txt_mtime || ($ico_mtime < time() - (mt_rand(15, 20) * 86400))) && !$is_custom_favicon) {
+if (($ico_mtime == false || $ico_mtime < $txt_mtime || ($ico_mtime < time() - (rand(15, 20) * 86400))) && !$is_custom_favicon) {
if ($txt_mtime == false) {
show_default_favicon(1800);
exit();
@@ -63,7 +63,7 @@ if (($ico_mtime == false || $ico_mtime < $txt_mtime || ($ico_mtime < time() - (m
}
}
-if ($no_cache || !httpConditional($ico_mtime, mt_rand(14, 21) * 86400, 2)) {
+if ($no_cache || !httpConditional($ico_mtime, rand(14, 21) * 86400, 2)) {
$ico_content_type = contentType($ico);
header('Content-Type: ' . $ico_content_type);
header('Content-Disposition: inline; filename="' . $id . '.ico"');