Closed alanhamlett closed 4 years ago
Bad clients can send Referer header with malformed urls, for ex: port that isn't a number.
This change catches the exception from urllib.parse and results in a 403 error instead of 500 error.
Good catch!
Bad clients can send Referer header with malformed urls, for ex: port that isn't a number.
This change catches the exception from urllib.parse and results in a 403 error instead of 500 error.