Skip to content

Commit a17e2bc

Browse files
committed
Properly strip newlines at end of filename
1 parent 410f7ab commit a17e2bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/purgehook/purgehook.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
})
5050

5151
# If it's a CSS file, we also need to purge /dyncss/
52-
if l.endswith('.css'):
52+
if l.strip().endswith('.css'):
5353
curs.execute("SELECT varnish_purge('^/dyncss/')")
5454
elif l.startswith('data/'):
5555
# Data files map to xkeys with the same name as the file prefixed by data_

0 commit comments

Comments
 (0)