#172 Unable to dump DB

3.2.2
closed-works-for-me
Common (150)
5
2011-07-24
2011-07-14
No

When I'm trying to make a dump of my DB, I'm getting the error "Invalid CSRF token", and I'm thus enable to get the dump I want.
It appears that it's because the form is missing the "token" hidden input : if I add it in the source (using the same syntax as found is other forms), the issue is solved.

Discussion

  • Xavier Lepaul

    Xavier Lepaul - 2011-07-14

    The input I've added (on line 184 in dump.inc.php) is as follow:
    <input type="hidden" name="token" value="<?php echo $token; ?>">

     
  • Jakub Vrána

    Jakub Vrána - 2011-07-15
    • status: open --> pending-works-for-me
     
  • Jakub Vrána

    Jakub Vrána - 2011-07-15

    There's no need to pass token in dump because it doesn't perform any action (it just prints data). I can't see how the error can be displayed because there is:

    if ($_POST) {
    // ...
    exit;
    }

    Please elaborate what exactly are you doing.

     
  • Xavier Lepaul

    Xavier Lepaul - 2011-07-24

    I did not manage to reproduce...

     
  • Xavier Lepaul

    Xavier Lepaul - 2011-07-24
    • status: pending-works-for-me --> closed-works-for-me
     

Log in to post a comment.