Menu

#2654 (ok 2.11.6) unsetting the whitelist during the loop

2.11.5
fixed
1
2013-06-11
2008-03-09
No

Dear developers,

When trying to install the new 2.11.5 release, I ran into problems with phpMyAdmin displaying only blank pages. After some research, I traced the problem to libraries/common.inc.php:148-170. It seems that get_defined_vars() also returns the local variables $key, $value and $variables_whitelist. These variables themselves are not in the whitelist, and consequently get unset. This seems to cause the script to never terminate.

I made a make-shift fix for own use by simply adding these three variable names to the variables_whitelist. Now my phpMyAdmin install is (finally) working!

In case it is of value, I included the output of phpinfo() on my server.

Regards,
Jeroen Vrijkorte

Discussion

  • Jeroen Vrijkorte

    Output from phpinfo() call.

     
  • Marc Delisle

    Marc Delisle - 2008-03-11
    • assigned_to: nobody --> lem9
     
  • Marc Delisle

    Marc Delisle - 2008-03-11
    • priority: 5 --> 1
    • summary: Fatal error in libraries/common.inc.php --> (ok 2.11.6) unsetting the whitelist during the loop
    • status: open --> open-fixed
     
  • Marc Delisle

    Marc Delisle - 2008-03-11

    Logged In: YES
    user_id=210714
    Originator: NO

    Good catch! Fixed for 2.11.6 (no need to add "value" to the whitelist as it's not verified in the loop).

    I don't know why it did not cause problems on the majority of servers but it's a logic error nevertheless.

     
  • Marc Delisle

    Marc Delisle - 2008-04-29
    • status: open-fixed --> closed-fixed
     
  • Michal Čihař

    Michal Čihař - 2013-06-11
    • Status: closed-fixed --> fixed