From 9b622ec543d50fc17abc7b037d40e4fbb62746a9 Mon Sep 17 00:00:00 2001 From: Philipp Fischbeck Date: Sun, 1 Feb 2015 12:09:45 +0100 Subject: [PATCH] Fix possible security problem --- app/controllers/translations_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/translations_controller.rb b/app/controllers/translations_controller.rb index 7c3ea67..af3dda3 100644 --- a/app/controllers/translations_controller.rb +++ b/app/controllers/translations_controller.rb @@ -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 }