1
0
mirror of https://github.com/projekteuler/projekteuler.git synced 2026-01-27 02:28:50 +01:00

Merge pull request #23 from PFischbeck/param_security_fix

Fix possible security problem
This commit is contained in:
2015-02-01 12:13:50 +01:00

View File

@@ -26,7 +26,7 @@ class TranslationsController < ApplicationController
respond_to do |format| respond_to do |format|
if @translation.save 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 } format.json { render :show, status: :created, location: @translation }
else else
format.html { render :new } format.html { render :new }