mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 14:55:40 +00:00
some code refactoring and beautification
This commit is contained in:
parent
13e93f564a
commit
5269cb8c08
4 changed files with 13 additions and 10 deletions
|
|
@ -1245,7 +1245,7 @@ def parseXmlFile(xmlFile, handler):
|
|||
|
||||
def readCachedFileContent(filename, mode='rb'):
|
||||
if filename not in kb.cache.content:
|
||||
kb.data.cacheLock.acquire()
|
||||
kb.locks.cacheLock.acquire()
|
||||
|
||||
if filename not in kb.cache.content:
|
||||
checkFile(filename)
|
||||
|
|
@ -1254,7 +1254,7 @@ def readCachedFileContent(filename, mode='rb'):
|
|||
kb.cache.content[filename] = content
|
||||
xfile.close()
|
||||
|
||||
kb.data.cacheLock.release()
|
||||
kb.locks.cacheLock.release()
|
||||
|
||||
return kb.cache.content[filename]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue