witten
/
luminotes
Archived
1
0
Fork 0

Changing file link pattern slightly so that a file link with no title is not counted.

This commit is contained in:
Dan Helfman 2008-02-22 20:04:23 +00:00
parent 65ce915755
commit db1bc247ad
1 changed files with 1 additions and 1 deletions

View File

@ -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.