Skip to content

Commit

Permalink
Increase maximum compiler_options and command_line_arguments length t…
Browse files Browse the repository at this point in the history
…o 512 - solves #122.
  • Loading branch information
hermanzdosilovic committed Dec 31, 2019
1 parent 2a31e96 commit 3d4df3b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/models/submission.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ class Submission < ApplicationRecord
unless: "Config::ALLOW_ENABLE_PER_PROCESS_AND_THREAD_MEMORY_LIMIT"
validates :max_file_size,
numericality: { greater_than: 0, less_than_or_equal_to: Config::MAX_MAX_FILE_SIZE }
validates :compiler_options, length: { maximum: 128 }
validates :command_line_arguments, length: { maximum: 128 }
validates :compiler_options, length: { maximum: 512 }
validates :command_line_arguments, length: { maximum: 512 }
validate :language_existence, :compiler_options_allowed, :command_line_arguments_allowed

before_create :generate_token
Expand Down

0 comments on commit 3d4df3b

Please sign in to comment.