mirror of
https://github.com/projekteuler/projekteuler.git
synced 2025-12-10 08:46:41 +01:00
Fix possible security problem
This commit is contained in:
parent
622a0b0046
commit
9b622ec543
@ -26,7 +26,7 @@ class TranslationsController < ApplicationController
|
||||
|
||||
respond_to do |format|
|
||||
if @translation.save
|
||||
format.html { redirect_to @translation.problem, notice: t('translations.notice.successfully_created') }
|
||||
format.html { redirect_to @problem, notice: t('translations.notice.successfully_created') }
|
||||
format.json { render :show, status: :created, location: @translation }
|
||||
else
|
||||
format.html { render :new }
|
||||
|
||||
Loading…
Reference in New Issue
Block a user