remove monkeypatch that was causing file upload issues

This commit is contained in:
Kyle Drake 2015-03-14 17:49:18 -05:00
parent 82c473351f
commit 3f7f90c9e7
6 changed files with 9 additions and 13 deletions

View file

@ -41,7 +41,7 @@ the Neocities Cat
end
get '/password_reset_confirm' do
if params[:token].nil? || params[:token].empty?
if params[:token].nil? || params[:token].strip.empty?
flash[:error] = 'Could not find a site with this token.'
redirect '/'
end
@ -67,4 +67,4 @@ get '/password_reset_confirm' do
end
redirect '/'
end
end