Permalink
Browse files

Escape 0x00 in javascript_escape().

This is needed in older PyQt-versions.
  • Loading branch information...
The-Compiler committed Aug 4, 2015
1 parent 8ac4869 commit 93d27cbb5f49085dd5a7f5e05f2cc45cc84f94a4
Showing with 1 addition and 0 deletions.
  1. +1 −0 qutebrowser/browser/webelem.py
@@ -307,6 +307,7 @@ def javascript_escape(text):
('"', r'\"'), # (note it won't hurt when we escape the wrong one).
('\n', r'\n'), # We also need to escape newlines for some reason.
('\r', r'\r'),
('\x00', r'\x00'),
)
for orig, repl in replacements:
text = text.replace(orig, repl)

0 comments on commit 93d27cb

Please sign in to comment.