From fedd44a5b04d4cb6a15d2994671447e8d6558498 Mon Sep 17 00:00:00 2001 From: imdano <> Date: Wed, 20 Aug 2008 14:09:47 +0000 Subject: [PATCH] trunk/experiementa/pluggablebackends: - Fix crash due to _sanitize_string getting None passed in. --- wnettools.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wnettools.py b/wnettools.py index c0ab3e8..2ecadea 100644 --- a/wnettools.py +++ b/wnettools.py @@ -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)