mirror of
https://github.com/sqlmapproject/sqlmap
synced 2025-12-06 16:32:23 +01:00
Minor patch
This commit is contained in:
parent
295b2f8603
commit
2beeb178fb
1 changed files with 1 additions and 1 deletions
|
|
@ -42,7 +42,7 @@ class Takeover(GenericTakeover):
|
|||
# Reference: http://dev.mysql.com/doc/refman/5.1/en/server-options.html#option_mysqld_basedir
|
||||
self.__basedir = unArrayizeValue(inject.getValue("SELECT @@basedir"))
|
||||
|
||||
if re.search("^[\w]\:[\/\\\\]+", self.__basedir, re.I):
|
||||
if re.search("^[\w]\:[\/\\\\]+", (self.__basedir or ""), re.I):
|
||||
Backend.setOs(OS.WINDOWS)
|
||||
else:
|
||||
Backend.setOs(OS.LINUX)
|
||||
|
|
|
|||
Loading…
Reference in a new issue