diff --git a/modules/cragr/web/browser.py b/modules/cragr/web/browser.py index ef6e8583..6d7085a5 100644 --- a/modules/cragr/web/browser.py +++ b/modules/cragr/web/browser.py @@ -102,6 +102,9 @@ class Cragr(BaseBrowser): # The result of POST is the destination URL. url = self.page.get_result_url() + if not url.startswith('http'): + raise BrowserIncorrectPassword(url) + self.location(url) if self.is_on_page(LoginErrorPage) or not self.is_logged():