rDrama/files
Snakes aaf718c78c Fix timeout in sanitize from link_fix_regex.
h/t to @official-techsupport for finding and help fixing this bug.
When given certain pathological input, `sanitize` would time out
(notably only on posts, rather than comments, perhaps due to the
longer maximum length of input). For example, using as input the
result of:

    with open("test.txt", "w") as f:
        for i in range(26):
            f.write(f":{chr(ord('a') + i)}: ")
        f.write('x' * 20_000)

We believe this to be because of some combination of the greedy
quantifiers and the negative lookahead before the match. The regex
was rewritten to (in theory) have much more linear performance.
2022-06-25 01:28:43 -04:00
..
classes show duration on ban icon tooltip 2022-06-25 02:11:00 +02:00
helpers Fix timeout in sanitize from link_fix_regex. 2022-06-25 01:28:43 -04:00
mail fix 500 error 2022-06-24 18:15:37 +02:00
routes remove 150 truescore requirement on discord 2022-06-25 04:00:49 +02:00
templates try fixing RAM thing 2022-06-25 05:19:28 +02:00
tests vdffsd 2022-05-23 00:45:04 +02:00
__init__.py Revert "delete useless file" 2022-06-10 21:50:09 -04:00
__main__.py stop using app.config for our own stuff 2022-06-24 17:08:57 +02:00
cli.py Fix cli.py running in wrong working directory. 2022-06-19 05:28:07 -04:00