mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Fix bug in upload HTML checker.
If a chunk was passed into the check_html function - e.g. it was read from a compressed file - it would search through each character in the string for certain HTML content instead of each line in the string.
This commit is contained in:
@@ -14,6 +14,8 @@ HTML_CHECK_LINES = 100
|
||||
def check_html( file_path, chunk=None ):
|
||||
if chunk is None:
|
||||
temp = open( file_path, "U" )
|
||||
elif hasattr(chunk, "splitlines"):
|
||||
temp = chunk.splitlines()
|
||||
else:
|
||||
temp = chunk
|
||||
regexp1 = re.compile( "<A\s+[^>]*HREF[^>]+>", re.I )
|
||||
|
||||
Reference in New Issue
Block a user