Skip to content

Commit

Permalink
Do not let unicode urls to pass through
Browse files Browse the repository at this point in the history
  • Loading branch information
kedder committed Mar 22, 2013
1 parent f01ac73 commit b4cb637
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/zope/testbrowser/browser.py
Expand Up @@ -482,7 +482,7 @@ def _preparedRequest(self, url):
def _absoluteUrl(self, url):
absolute = url.startswith('http://') or url.startswith('https://')
if absolute:
return url
return str(url)

if not self.isHtml:
raise BrowserStateError("can't fetch relative reference: not viewing any document")
Expand Down

0 comments on commit b4cb637

Please sign in to comment.