summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorwn_ <[email protected]>2021-02-21 23:30:31 +0000
committerwn_ <[email protected]>2021-02-21 23:30:31 +0000
commit02a9485966dbbac1ed52ecbfb29fcc15125cba43 (patch)
tree4b5b49e3bea4cb3ad2a7e193833f2de1129573c6 /include
parentcb401af6f6f278b94b664569796c49f045e3ffde (diff)
Try to limit max favicon size, don't store current/old in a var.
Diffstat (limited to 'include')
-rw-r--r--include/functions.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/functions.php b/include/functions.php
index 174ef39f0..df8730aca 100644
--- a/include/functions.php
+++ b/include/functions.php
@@ -68,6 +68,8 @@
// do not cache files larger than that (bytes)
define_default('MAX_DOWNLOAD_FILE_SIZE', 16*1024*1024);
// do not download general files larger than that (bytes)
+ define_default('MAX_FAVICON_FILE_SIZE', 1*1024*1024);
+ // do not download favicon files larger than that (bytes)
define_default('CACHE_MAX_DAYS', 7);
// max age in days for various automatically cached (temporary) files
define_default('MAX_CONDITIONAL_INTERVAL', 3600*12);