For generating PmaAbsoluteUri $GLOBALS['PMA_PHP_SELF'] should be replaced with PMA_getenv('REQUEST_URI...

...')

REQUEST_URI is never parsed when generating PmaAbsoluteUri, but $GLOBALS['PMA_PHP_SELF'] is. I'm not sure using PMA_PHP_SELF is the best and most correct way to set the URI, so I changed it to use REQUEST_URI.