mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-03 22:31:34 +00:00
Fixes #5731
This commit is contained in:
parent
0b9a8c57d7
commit
cf91046766
3 changed files with 19 additions and 3 deletions
|
|
@ -8,6 +8,7 @@ See the file 'LICENSE' for copying permission
|
|||
import codecs
|
||||
import collections
|
||||
import inspect
|
||||
import logging
|
||||
import os
|
||||
import random
|
||||
import re
|
||||
|
|
@ -135,6 +136,21 @@ def dirtyPatches():
|
|||
|
||||
codecs.register_error("reversible", _reversible)
|
||||
|
||||
# Reference: https://github.com/sqlmapproject/sqlmap/issues/5731
|
||||
if not hasattr(logging, "_acquireLock"):
|
||||
def _acquireLock():
|
||||
if logging._lock:
|
||||
logging._lock.acquire()
|
||||
|
||||
logging._acquireLock = _acquireLock
|
||||
|
||||
if not hasattr(logging, "_releaseLock"):
|
||||
def _releaseLock():
|
||||
if logging._lock:
|
||||
logging._lock.release()
|
||||
|
||||
logging._releaseLock = _releaseLock
|
||||
|
||||
def resolveCrossReferences():
|
||||
"""
|
||||
Place for cross-reference resolution
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue