if @meta["Coquelicot"].nil? or @meta["Coquelicot"] != COQUELICOT_VERSION then
raise "unknown file"
end
- @expire_at = Time.at(@meta['Expire-at'].to_i)
+ @expire_at = Time.at(@meta['Expire-at'])
end
def init_decrypt_cipher(pass)
src = params[:file][:tempfile]
link = depot.add_file(
src, pass,
- { "Expire-at" => expire_at.strftime('%s'),
+ { "Expire-at" => expire_at.to_i,
"Filename" => params[:file][:filename],
"Length" => src.stat.size,
"Content-Type" => params[:file][:type]
%a{ :href => 'http://www.gnu.org/licenses/agpl.txt' } AGPLv3
—
%span
- %code git clone #{base_href}git
+ %code git clone #{base_href}coquelicot.git
@@ index
%h1 Share a file!