1
0
mirror of https://github.com/projekteuler/projekteuler.git synced 2025-12-10 08:46:41 +01:00

Merge pull request #23 from PFischbeck/param_security_fix

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

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 }