Fix webm upload. #1533
This commit is contained in:
parent
bbb92b2dc7
commit
9215c06d55
@ -1,3 +1,5 @@
|
|||||||
|
- Fix webm upload.
|
||||||
|
|
||||||
### 3.20.1 - *2014-04-05*
|
### 3.20.1 - *2014-04-05*
|
||||||
|
|
||||||
- Bug fixes.
|
- Bug fixes.
|
||||||
|
|||||||
@ -136,7 +136,7 @@ QR.post = class
|
|||||||
when 'filename'
|
when 'filename'
|
||||||
return unless @file
|
return unless @file
|
||||||
@file.newName = @filename.replace /[/\\]/g, '-'
|
@file.newName = @filename.replace /[/\\]/g, '-'
|
||||||
unless /\.(jpe?g|png|gif|pdf|swf)$/i.test @filename
|
unless /\.(jpe?g|png|gif|pdf|swf|webm)$/i.test @filename
|
||||||
# 4chan will truncate the filename if it has no extension,
|
# 4chan will truncate the filename if it has no extension,
|
||||||
# but it will always replace the extension by the correct one,
|
# but it will always replace the extension by the correct one,
|
||||||
# so we suffix it with '.jpg' when needed.
|
# so we suffix it with '.jpg' when needed.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user