NZOI / nztrain

The NZOI online judge and training site written in Ruby
18 stars 13 forks source link

Display an error message when submitting executable. #268

Open BelgianSalamander opened 5 months ago

BelgianSalamander commented 5 months ago

This pull request should resolve #257.

It displays an error message either when a submission's source has an invalid text encoding or the source contains a null character. Either conditions would have previously caused a 500 Internal Server Error.

coveralls commented 5 months ago

Coverage Status

coverage: 37.531% (+0.008%) from 37.523% when pulling e06d5282058bd31dcb84d4ef54774bcff5b847f7 on BelgianSalamander:master into 51571c52e0a91c9f91626c9618c06d7df1e8cec2 on NZOI:master.