forked from rDrama/rDrama
1
0
Fork 0
rDrama/files/helpers
Snakes 1c7458e111 Sanitize: modularize normalize_url, fix streamable.
Originally prompted by https://rdrama.net/post/18459/-/1984609 which
noticed that streamable.com/e/ links as posts would have another e/
added to them. This was in spite of logic in posts.py api_is_repost
and submit_post designed to specifically counteract this.
Proximal cause was a copypasta'd url.replace(...) chain which
caused the mistake before the streamable-specific logic had a chance
to avoid making it.

Solution: remove the streamable replacement from the chained statement
and create `helpers.normalize_url(url)` to get rid of the copypasta.
2022-05-25 04:43:16 -04:00
..
alerts.py sfd 2022-05-08 06:01:42 +02:00
blackjack.py Blackjack: add five card charlie rule. 2022-05-20 23:08:20 -04:00
const.py fsd 2022-05-25 02:22:09 +02:00
discord.py sfd 2022-05-07 06:13:19 +02:00
get.py mn 2022-05-05 01:09:46 +02:00
jinja2.py fsd 2022-05-08 07:14:24 +02:00
lazy.py mn 2022-05-05 01:09:46 +02:00
media.py fd 2022-05-25 00:43:49 +02:00
sanitize.py Sanitize: modularize normalize_url, fix streamable. 2022-05-25 04:43:16 -04:00
security.py mn 2022-05-05 01:09:46 +02:00
slots.py fsd 2022-04-02 18:54:27 +02:00
treasure.py fs 2022-04-03 22:17:55 +02:00
wrappers.py sfd 2022-05-24 22:27:27 +02:00