We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d647d2c commit 802f03eCopy full SHA for 802f03e
app/controllers/contests/problems_controller.rb
@@ -43,7 +43,7 @@ def submit
43
file = params[:files]
44
45
redirect_to({ action: 'index' }, alert: 'Contest is already closed.') and return if @contest.ended?
46
- redirect_to({ action: 'show' }, alert: 'Too large file') if file && file.size > 100.kilobyte
+ redirect_to({ action: 'show' }, alert: 'Too large file') and return if file && file.size > 100.kilobyte
47
48
problem = Problem.find(params[:id])
49
input_type = params[:input_type]
0 commit comments