1
0
mirror of https://github.com/gryf/wicd.git synced 2025-12-22 14:07:59 +01:00

trunk/experiementa/pluggablebackends:

- Fix crash due to _sanitize_string getting None passed in.
This commit is contained in:
imdano
2008-08-20 14:09:47 +00:00
parent 57b03dd434
commit fedd44a5b0

View File

@@ -80,6 +80,10 @@ SIOCGIWAP = 0x8B15
def _sanitize_string(string):
blacklist = [';', '`', '$', '!', '*', '|', '>', '<']
new_string = []
if not string:
return string
for c in string:
if c in blacklist:
new_string.append("\\" + c)