mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-25 19:13:48 +03:00
Fixes #1558
This commit is contained in:
parent
b2dc443835
commit
bdb496eaa5
|
@ -11,6 +11,7 @@ import shutil
|
||||||
import stat
|
import stat
|
||||||
import string
|
import string
|
||||||
|
|
||||||
|
from lib.core.common import getSafeExString
|
||||||
from lib.core.data import logger
|
from lib.core.data import logger
|
||||||
|
|
||||||
def purge(directory):
|
def purge(directory):
|
||||||
|
@ -79,4 +80,4 @@ def purge(directory):
|
||||||
try:
|
try:
|
||||||
shutil.rmtree(directory)
|
shutil.rmtree(directory)
|
||||||
except OSError, ex:
|
except OSError, ex:
|
||||||
logger.error("problem occurred while removing directory '%s' ('%s')" % (directory, unicode(ex)))
|
logger.error("problem occurred while removing directory '%s' ('%s')" % (directory, getSafeExString(ex)))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user