2 ms·
Oh I wrote that code in anger forever ago, it had the merit of still working when I did the last round of cleanups on my website. I could've sworn at some poin
by fasterthanlime 4y ago
Oh I wrote that code in anger forever ago, it had the merit of still working when I did the last round of cleanups on my website.
I could've sworn at some point some paths had something slightly more involved (strip slashes, some starts_with or trim_prefix, etc.) but the snippet as you've copied it is certainly... not great.