mirror of
				https://github.com/sqlmapproject/sqlmap.git
				synced 2025-10-31 07:57:47 +03:00 
			
		
		
		
	Fixes #4010
This commit is contained in:
		
							parent
							
								
									60c7fb3e03
								
							
						
					
					
						commit
						77312a8a2e
					
				|  | @ -18,7 +18,7 @@ from lib.core.enums import OS | ||||||
| from thirdparty.six import unichr as _unichr | from thirdparty.six import unichr as _unichr | ||||||
| 
 | 
 | ||||||
| # sqlmap version (<major>.<minor>.<month>.<monthly commit>) | # sqlmap version (<major>.<minor>.<month>.<monthly commit>) | ||||||
| VERSION = "1.3.11.39" | VERSION = "1.3.11.40" | ||||||
| TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable" | TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable" | ||||||
| TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34} | TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34} | ||||||
| VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE) | VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE) | ||||||
|  |  | ||||||
|  | @ -5,6 +5,7 @@ Copyright (c) 2006-2019 sqlmap developers (http://sqlmap.org/) | ||||||
| See the file 'LICENSE' for copying permission | See the file 'LICENSE' for copying permission | ||||||
| """ | """ | ||||||
| 
 | 
 | ||||||
|  | from lib.core.convert import getText | ||||||
| from thirdparty.six.moves import urllib as _urllib | from thirdparty.six.moves import urllib as _urllib | ||||||
| 
 | 
 | ||||||
| class MethodRequest(_urllib.request.Request): | class MethodRequest(_urllib.request.Request): | ||||||
|  | @ -13,8 +14,7 @@ class MethodRequest(_urllib.request.Request): | ||||||
|     """ |     """ | ||||||
| 
 | 
 | ||||||
|     def set_method(self, method): |     def set_method(self, method): | ||||||
|         self.method = method.upper() |         self.method = getText(method.upper())  # Dirty hack for Python3 (may it rot in hell!) | ||||||
|         print("%s,%s" % (type(self.method), type(self.data))) |  | ||||||
| 
 | 
 | ||||||
|     def get_method(self): |     def get_method(self): | ||||||
|         return getattr(self, 'method', _urllib.request.Request.get_method(self)) |         return getattr(self, 'method', _urllib.request.Request.get_method(self)) | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user