mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 06:50:14 +00:00
way to handle re.I (ignore case) while using getCompiledRegex
This commit is contained in:
parent
5d5ebd49b6
commit
20d05cc404
2 changed files with 4 additions and 3 deletions
|
|
@ -24,6 +24,7 @@ Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|||
|
||||
import re
|
||||
|
||||
from lib.core.common import getCompiledRegex
|
||||
from lib.core.common import normalizePath
|
||||
from lib.core.common import ntToPosixSlashes
|
||||
from lib.core.common import posixToNtSlashes
|
||||
|
|
@ -57,7 +58,7 @@ class Miscellaneous:
|
|||
else:
|
||||
conf.tmpPath = "/tmp"
|
||||
|
||||
if re.search("\A[\w]:[\/\\\\]+", conf.tmpPath, re.I):
|
||||
if getCompiledRegex("(?i)\A[\w]:[\/\\\\]+").search(conf.tmpPath):
|
||||
kb.os = "Windows"
|
||||
|
||||
conf.tmpPath = normalizePath(conf.tmpPath)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue