Commit 43f255e
committed
Perform basic URL/output validation and consistify encode/decode behavior.
Rather than look at the helper program's full output, we now only grab the
first word, and then use urlparse to check for a scheme to verify basic
URL-ness. Further, we make sure that none of the characters are a control
code.
Calls to decode() and encode() are now passed getpreferredencoding() to
match the rest of the codebase.1 parent e78ddd0 commit 43f255e
1 file changed
+9
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
| 44 | + | |
43 | 45 | | |
44 | 46 | | |
45 | 47 | | |
| |||
820 | 822 | | |
821 | 823 | | |
822 | 824 | | |
823 | | - | |
824 | | - | |
| 825 | + | |
| 826 | + | |
825 | 827 | | |
826 | 828 | | |
827 | 829 | | |
| |||
837 | 839 | | |
838 | 840 | | |
839 | 841 | | |
| 842 | + | |
| 843 | + | |
| 844 | + | |
| 845 | + | |
| 846 | + | |
840 | 847 | | |
841 | 848 | | |
842 | 849 | | |
| |||
0 commit comments