mirror of
				https://github.com/sqlmapproject/sqlmap.git
				synced 2025-11-04 01:47:37 +03:00 
			
		
		
		
	Minor bug fixes to -d
This commit is contained in:
		
							parent
							
								
									ccfc9b0fec
								
							
						
					
					
						commit
						9ea72f9640
					
				| 
						 | 
					@ -72,7 +72,7 @@ def direct(query, content=True):
 | 
				
			||||||
                out = list(output)[0][0]
 | 
					                out = list(output)[0][0]
 | 
				
			||||||
                if isinstance(out, str):
 | 
					                if isinstance(out, str):
 | 
				
			||||||
                    out = utf8decode(out)
 | 
					                    out = utf8decode(out)
 | 
				
			||||||
                return out
 | 
					                return getUnicode(out)
 | 
				
			||||||
            else:
 | 
					            else:
 | 
				
			||||||
                return list(output)
 | 
					                return list(output)
 | 
				
			||||||
        else:
 | 
					        else:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -66,7 +66,7 @@ class Filesystem(GenericFilesystem):
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        length = inject.getValue("SELECT LENGTH(%s) FROM %s" % (self.tblField, self.fileTblName), sort=False, resumeValue=False, charsetType=2)
 | 
					        length = inject.getValue("SELECT LENGTH(%s) FROM %s" % (self.tblField, self.fileTblName), sort=False, resumeValue=False, charsetType=2)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if not length.isdigit() or not len(length) or length in ( "0", "1" ):
 | 
					        if length is None or not length.isdigit() or not len(length) or length in ( "0", "1" ):
 | 
				
			||||||
            errMsg  = "unable to retrieve the content of the "
 | 
					            errMsg  = "unable to retrieve the content of the "
 | 
				
			||||||
            errMsg += "file '%s'" % rFile
 | 
					            errMsg += "file '%s'" % rFile
 | 
				
			||||||
            raise sqlmapNoneDataException, errMsg
 | 
					            raise sqlmapNoneDataException, errMsg
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user