mirror of
				https://github.com/sqlmapproject/sqlmap.git
				synced 2025-10-30 23:47:45 +03:00 
			
		
		
		
	Update for an Issue #254
This commit is contained in:
		
							parent
							
								
									bdd819d7f2
								
							
						
					
					
						commit
						3b961c2550
					
				|  | @ -326,9 +326,7 @@ class Dump: | ||||||
|     def dbTableValues(self, tableValues): |     def dbTableValues(self, tableValues): | ||||||
|         replication = None |         replication = None | ||||||
|         rtable = None |         rtable = None | ||||||
|         documentNode = None |         documentNode, tableNode, bodyNode, headNode, rowNode = (0,) * 5 | ||||||
|         tableNode = None |  | ||||||
|         rowNode = None |  | ||||||
|         dumpFP = None |         dumpFP = None | ||||||
| 
 | 
 | ||||||
|         if tableValues is None: |         if tableValues is None: | ||||||
|  | @ -411,8 +409,12 @@ class Dump: | ||||||
|         self._write(separator) |         self._write(separator) | ||||||
| 
 | 
 | ||||||
|         if conf.dumpFormat == DUMP_FORMAT.HTML: |         if conf.dumpFormat == DUMP_FORMAT.HTML: | ||||||
|  |             headNode = documentNode.createElement("thead") | ||||||
|             rowNode = documentNode.createElement("tr") |             rowNode = documentNode.createElement("tr") | ||||||
|             tableNode.appendChild(rowNode) |             tableNode.appendChild(headNode) | ||||||
|  |             headNode.appendChild(rowNode) | ||||||
|  |             bodyNode = documentNode.createElement("tbody") | ||||||
|  |             tableNode.appendChild(bodyNode) | ||||||
| 
 | 
 | ||||||
|         for column in columns: |         for column in columns: | ||||||
|             if column != "__infos__": |             if column != "__infos__": | ||||||
|  | @ -455,7 +457,7 @@ class Dump: | ||||||
| 
 | 
 | ||||||
|             if conf.dumpFormat == DUMP_FORMAT.HTML: |             if conf.dumpFormat == DUMP_FORMAT.HTML: | ||||||
|                 rowNode = documentNode.createElement("tr") |                 rowNode = documentNode.createElement("tr") | ||||||
|                 tableNode.appendChild(rowNode) |                 bodyNode.appendChild(rowNode) | ||||||
| 
 | 
 | ||||||
|             for column in columns: |             for column in columns: | ||||||
|                 if column != "__infos__": |                 if column != "__infos__": | ||||||
|  |  | ||||||
|  | @ -503,14 +503,21 @@ FORM_SEARCH_REGEX = r"(?si)<form(?!.+<form).+?</form>" | ||||||
| # CSS style used in HTML dump format | # CSS style used in HTML dump format | ||||||
| HTML_DUMP_CSS_STYLE = """<style> | HTML_DUMP_CSS_STYLE = """<style> | ||||||
| table{ | table{ | ||||||
| margin:10; |     margin:10; | ||||||
| background-color:#ffffff; |     background-color:#FFFFFF; | ||||||
| font-family:verdana; |     font-family:verdana; | ||||||
| font-size:12px; |     font-size:12px; | ||||||
| align:center; |     align:center; | ||||||
|  | } | ||||||
|  | thead{ | ||||||
|  |     font-weight:bold; | ||||||
|  |     background-color:#4F81BD; | ||||||
|  |     color:#FFFFFF; | ||||||
|  | } | ||||||
|  | tr:nth-child(even) { | ||||||
|  |     background-color: #D3DFEE | ||||||
| } | } | ||||||
| td{ | td{ | ||||||
| font-family:verdana; |     font-size:10px; | ||||||
| font-size:10px; |  | ||||||
| } | } | ||||||
| </style>""" | </style>""" | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user