Changing file link pattern slightly so that a file link with no title is not counted.
This commit is contained in:
parent
65ce915755
commit
db1bc247ad
|
@ -198,7 +198,7 @@ cherrypy._cpcgifs.FieldStorage = FieldStorage
|
|||
|
||||
|
||||
class Files( object ):
|
||||
FILE_LINK_PATTERN = re.compile( u'<a\s+href="[^"]*/files/download\?file_id=([^"]+)">', re.IGNORECASE )
|
||||
FILE_LINK_PATTERN = re.compile( u'<a\s+href="[^"]*/files/download\?file_id=([^"]+)">[^<]+</a>', re.IGNORECASE )
|
||||
|
||||
"""
|
||||
Controller for dealing with uploaded files, corresponding to the "/files" URL.
|
||||
|
|
Reference in New Issue