From db1bc247adf3c5ade6df64f041413cb055fb3e43 Mon Sep 17 00:00:00 2001 From: Dan Helfman Date: Fri, 22 Feb 2008 20:04:23 +0000 Subject: [PATCH] Changing file link pattern slightly so that a file link with no title is not counted. --- controller/Files.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controller/Files.py b/controller/Files.py index ed817d4..dd986de 100644 --- a/controller/Files.py +++ b/controller/Files.py @@ -198,7 +198,7 @@ cherrypy._cpcgifs.FieldStorage = FieldStorage class Files( object ): - FILE_LINK_PATTERN = re.compile( u'', re.IGNORECASE ) + FILE_LINK_PATTERN = re.compile( u'[^<]+', re.IGNORECASE ) """ Controller for dealing with uploaded files, corresponding to the "/files" URL.