Closed asdofindia closed 3 years ago
We rewrote the cleanurl filter to be a bit more robust, put it in the shared library, and goofed up on lstrip
, which takes characters, not substrings. It was failing on URLs that begin with w
, but the tests only had variations of example.com
URLs. Fixed it there.
Eg: https://hasjob.co/whitehatjr.com/7zgax - See the
hitehatjr.com
in the headerSimilarly, https://hasjob.co/weqtechnologies.com/gnho9 has become eqtechnologies
I looked at the
cleanurl
function but that seems correct to me. Can't figure out who is off by one and why.