Skip to content

Commit 802f03e

Browse files
author
Kazunori Sakamoto
committed
Fix redirect call. Add maxlength in input texts. Close #248 Close #249
1 parent d647d2c commit 802f03e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/controllers/contests/problems_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def submit
4343
file = params[:files]
4444

4545
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
46+
redirect_to({ action: 'show' }, alert: 'Too large file') and return if file && file.size > 100.kilobyte
4747

4848
problem = Problem.find(params[:id])
4949
input_type = params[:input_type]

0 commit comments

Comments
 (0)