Fix possible security problem

This commit is contained in:
pfischbeck committed 2015-02-01 12:09:45 +01:00
1 parent 622a0b0046
commit 9b622ec543
1 file changed
+1 -1
+1 -1
View File
@@ -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 }