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:
commit
a127fbcf15
@ -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 }
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user