whoogle-search/app
Ben Busby cb5557cc2e
Check file sizes in session dir before validation
For pip installed instances of Whoogle, there seems to be an issue where
files other than sessions are being stored in the same directory as the
sessions. From a brief investigation, this does not seem to be caused by
Whoogle, since Flask-Session objects are the only files stored in that
directory. It could be an issue with the library that is being used for
sessions, however.

Regardless, the app shouldn't crash when trying to validate and remove
invalid sessions, so a file size limit of 4KB was imposed during
validation. Any file found in the session directory that exceeds this
size limit will be ignored.

Fixes #777
Fixes #793
2022-06-16 11:50:13 -06:00
..
models Counter latest result page style changes 2022-06-09 16:35:02 -06:00
static Fix missing box shadow for light theme results 2022-06-10 08:58:31 -06:00
templates Render error message w/o `safe` filter 2022-04-26 09:28:05 -06:00
utils Ensure currency link parent exists before parsing 2022-06-16 10:28:06 -06:00
__init__.py Check file sizes in session dir before validation 2022-06-16 11:50:13 -06:00
__main__.py Swap out Flask's default web server for Waitress (#32) 2020-05-12 17:14:55 -06:00
filter.py Counter latest result page style changes 2022-06-09 16:35:02 -06:00
request.py Tor password authentication (#746) 2022-06-16 11:05:41 -06:00
routes.py Check file sizes in session dir before validation 2022-06-16 11:50:13 -06:00