another fix for Bug #148

This commit is contained in:
Miroslav Stampar
2010-01-23 23:29:34 +00:00
parent 39652bfbf4
commit 98205cc488
2 changed files with 12 additions and 6 deletions

View File

@@ -32,6 +32,7 @@ import time
import urlparse
import ntpath
import posixpath
from lib.contrib import magic
from lib.core.data import conf
from lib.core.data import kb
@@ -869,3 +870,7 @@ def safeStringFormat(formatStr, params):
count += 1
return retVal
def sanitizeAsciiString(string):
return "".join(char if ord(char) <= 128 else '?' for char in string)