An unofficial, mostly Bitwarden-compatible API server written in Ruby (Sinatra and ActiveRecord)
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

attachments: just match on filename, don't need Content-Type

+1 -1
+1 -1
lib/routes/attachments.rb
··· 28 28 29 29 # we have to extract filename from data -> head, since data -> filename is truncated 30 30 filename = nil 31 - if md = params[:data][:head].match(/filename=\"(\S+)\"\r\nContent-Type/) 31 + if md = params[:data][:head].match(/filename=\"(\S+)\"/) 32 32 filename = md[1] 33 33 else 34 34 return validation_error("filename cannot be blank")