mirror of
				https://github.com/sqlmapproject/sqlmap.git
				synced 2025-11-04 09:57:38 +03:00 
			
		
		
		
	minor fix
This commit is contained in:
		
							parent
							
								
									58f8703ecd
								
							
						
					
					
						commit
						04c4578df7
					
				| 
						 | 
					@ -1212,11 +1212,15 @@ class Enumeration:
 | 
				
			||||||
        Returns an safe representation of SQL identificator name
 | 
					        Returns an safe representation of SQL identificator name
 | 
				
			||||||
        """
 | 
					        """
 | 
				
			||||||
        retVal = value
 | 
					        retVal = value
 | 
				
			||||||
        if isinstance(value, basestring) and not re.match(r"\A[A-Za-z0-9_]+\Z", value):
 | 
					        if isinstance(value, basestring):
 | 
				
			||||||
 | 
					            parts = value.split('.')
 | 
				
			||||||
 | 
					            for i in range(len(parts)):
 | 
				
			||||||
 | 
					                if not re.match(r"\A[A-Za-z0-9_]+\Z", parts[i]):
 | 
				
			||||||
                    if Backend.getIdentifiedDbms() in (DBMS.MYSQL, DBMS.ACCESS):
 | 
					                    if Backend.getIdentifiedDbms() in (DBMS.MYSQL, DBMS.ACCESS):
 | 
				
			||||||
                retVal = "`%s`" % value.strip("`")
 | 
					                        parts[i] = "`%s`" % parts[i].strip("`")
 | 
				
			||||||
                    elif Backend.getIdentifiedDbms() in (DBMS.MSSQL, DBMS.ORACLE, DBMS.PGSQL):
 | 
					                    elif Backend.getIdentifiedDbms() in (DBMS.MSSQL, DBMS.ORACLE, DBMS.PGSQL):
 | 
				
			||||||
                retVal = "\"%s\"" % value.strip("\"")
 | 
					                        parts[i] = "\"%s\"" % parts[i].strip("\"")
 | 
				
			||||||
 | 
					            retVal = ".".join(parts)
 | 
				
			||||||
        return retVal
 | 
					        return retVal
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def dumpTable(self):
 | 
					    def dumpTable(self):
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user