mirror of
				https://github.com/sqlmapproject/sqlmap.git
				synced 2025-10-31 16:07:55 +03:00 
			
		
		
		
	minor refactoring
This commit is contained in:
		
							parent
							
								
									5852bad963
								
							
						
					
					
						commit
						e09bc2406c
					
				|  | @ -1529,12 +1529,15 @@ def longestCommonPrefix(*sequences): | ||||||
| def commonFinderOnly(initial, sequence): | def commonFinderOnly(initial, sequence): | ||||||
|     return longestCommonPrefix(*filter(lambda x: x.startswith(initial), sequence)) |     return longestCommonPrefix(*filter(lambda x: x.startswith(initial), sequence)) | ||||||
| 
 | 
 | ||||||
|  | def getCurrentThreadID(): | ||||||
|  |     return threading.currentThread().ident | ||||||
|  | 
 | ||||||
| def pushValue(value): | def pushValue(value): | ||||||
|     """ |     """ | ||||||
|     Push value to the stack |     Push value to the stack | ||||||
|     """ |     """ | ||||||
| 
 | 
 | ||||||
|     threadId = threading.currentThread().ident |     threadId = getCurrentThreadID() | ||||||
|     if threadId not in kb.valueStack: |     if threadId not in kb.valueStack: | ||||||
|         kb.valueStack[threadId] = [] |         kb.valueStack[threadId] = [] | ||||||
|     kb.valueStack[threadId].append(value) |     kb.valueStack[threadId].append(value) | ||||||
|  | @ -1544,7 +1547,7 @@ def popValue(): | ||||||
|     Pop value from the stack |     Pop value from the stack | ||||||
|     """ |     """ | ||||||
| 
 | 
 | ||||||
|     return kb.valueStack[threading.currentThread().ident].pop() |     return kb.valueStack[getCurrentThreadID()].pop() | ||||||
| 
 | 
 | ||||||
| def wasLastRequestDBMSError(): | def wasLastRequestDBMSError(): | ||||||
|     """ |     """ | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user