mirror of
				https://github.com/sqlmapproject/sqlmap.git
				synced 2025-11-04 09:57:38 +03:00 
			
		
		
		
	Patch for an Issue #1121
This commit is contained in:
		
							parent
							
								
									e73ac6c8e3
								
							
						
					
					
						commit
						393659ffbf
					
				| 
						 | 
				
			
			@ -213,6 +213,9 @@ class Web:
 | 
			
		|||
            if success:
 | 
			
		||||
                break
 | 
			
		||||
 | 
			
		||||
            if not directory:
 | 
			
		||||
                continue
 | 
			
		||||
 | 
			
		||||
            uploaded = False
 | 
			
		||||
            directory = ntToPosixSlashes(normalizePath(directory))
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										7
									
								
								thirdparty/multipart/multipartpost.py
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										7
									
								
								thirdparty/multipart/multipartpost.py
									
									
									
									
										vendored
									
									
								
							| 
						 | 
				
			
			@ -81,9 +81,10 @@ class MultipartPostHandler(urllib2.BaseHandler):
 | 
			
		|||
            buf = ''
 | 
			
		||||
 | 
			
		||||
        for (key, value) in vars:
 | 
			
		||||
            buf += '--%s\r\n' % boundary
 | 
			
		||||
            buf += 'Content-Disposition: form-data; name="%s"' % key
 | 
			
		||||
            buf += '\r\n\r\n' + value + '\r\n'
 | 
			
		||||
            if key is not None and value is not None:
 | 
			
		||||
                buf += '--%s\r\n' % boundary
 | 
			
		||||
                buf += 'Content-Disposition: form-data; name="%s"' % key
 | 
			
		||||
                buf += '\r\n\r\n' + value + '\r\n'
 | 
			
		||||
 | 
			
		||||
        for (key, fd) in files:
 | 
			
		||||
            file_size = os.fstat(fd.fileno())[stat.ST_SIZE] if isinstance(fd, file) else fd.len
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user