Fix crash on /f/ from 325235c6881a3f91f2b13855c580678e606a71ee.

This commit is contained in:
ccd0 2016-01-11 14:31:39 -08:00
parent 325235c688
commit 4af720db33

View File

@ -48,7 +48,7 @@ Sauce =
'%URL': post.file.url
'%IMG': if ext in ['gif', 'jpg', 'png'] then post.file.url else post.file.thumbURL
'%MD5': post.file.MD5
'%sMD5': post.file.MD5.replace /[+/=]/g, (c) -> {'+': '-', '/': '_', '=': ''}[c]
'%sMD5': post.file.MD5?.replace /[+/=]/g, (c) -> {'+': '-', '/': '_', '=': ''}[c]
'%board': post.board.ID
'%name': post.file.name
'%%': '%'