Merge branch 'szzh' of http://repository.trustie.net/xianbo/trustie2 into szzh
This commit is contained in:
commit
b732944a2a
|
@ -56,6 +56,8 @@ class AttachmentsController < ApplicationController
|
|||
}
|
||||
format.api
|
||||
end
|
||||
rescue Encoding::InvalidByteSequenceError => e
|
||||
render :action => 'file'
|
||||
end
|
||||
|
||||
def download
|
||||
|
|
Loading…
Reference in New Issue