Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Auto-Escape?
  • <?php
    if ($model_data = Input::post('model_data', false))
    {
     $model->values($model_data);
     $model->save();
     Response::redirect(Uri::string());
    }
    ?>
    
    I have a problem:
    As a result, I get double-escaped data.
    1) while getting from Input::post()
    2) before saving in ORM class
    How can i fix it? For example:
    Send: model_data[title] => 'The "quoted string"'
    In MySQL: 'The \"quoted string\"' And there was a proposal to make a Request::refresh(); for a simple page refresh.
  • Switch off magic quotes in PHP, it's been deprecated as of PHP5.3 and we will never support it being switched on.
    And there was a proposal to make a Request::refresh(); for a simple page refresh.
    What does that refer to? I don't see anything in the issue tracker so no such proposal as far as I know.
  • I'm sorry. This Children's mistake on my part. Thx.
  • About Response::reload()
    I mean, it would be great if this method will be.
    And do some like this (just reload the page):
    Response::redirect(Uri::string());
    
    This useful, when i need just reload page, to reset Post headers after sending form data.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion