bug #1764182 [cookies] Suhosin cookie encryption breaks phpMyAdmin
This commit is contained in:
@@ -17,6 +17,7 @@ $HeadURL: https://phpmyadmin.svn.sourceforge.net/svnroot/phpmyadmin/trunk/phpMyA
|
|||||||
- bug #1848889 [export] export trigger should use DROP TRIGGER IF EXISTS
|
- bug #1848889 [export] export trigger should use DROP TRIGGER IF EXISTS
|
||||||
- bug #1851833 [display] Sorting forgets an explicit LIMIT
|
- bug #1851833 [display] Sorting forgets an explicit LIMIT
|
||||||
(fix for sorting on column headers)
|
(fix for sorting on column headers)
|
||||||
|
- bug #1764182 [cookies] Suhosin cookie encryption breaks phpMyAdmin
|
||||||
|
|
||||||
2.11.3.0 (2007-12-08)
|
2.11.3.0 (2007-12-08)
|
||||||
- patch #1818389 to remove a notice (failed to flush buffer), thanks to
|
- patch #1818389 to remove a notice (failed to flush buffer), thanks to
|
||||||
|
@@ -11,12 +11,11 @@
|
|||||||
* further decryption. I don't think necessary to have one iv
|
* further decryption. I don't think necessary to have one iv
|
||||||
* per server so I don't put the server number in the cookie name.
|
* per server so I don't put the server number in the cookie name.
|
||||||
*/
|
*/
|
||||||
if (!isset($_COOKIE['pma_mcrypt_iv'])) {
|
if (empty($_COOKIE['pma_mcrypt_iv'])
|
||||||
|
|| false === ($iv = base64_decode($_COOKIE['pma_mcrypt_iv']))) {
|
||||||
srand((double) microtime() * 1000000);
|
srand((double) microtime() * 1000000);
|
||||||
$iv = mcrypt_create_iv(mcrypt_get_iv_size(MCRYPT_BLOWFISH, MCRYPT_MODE_CBC), MCRYPT_RAND);
|
$iv = mcrypt_create_iv(mcrypt_get_iv_size(MCRYPT_BLOWFISH, MCRYPT_MODE_CBC), MCRYPT_RAND);
|
||||||
PMA_setCookie('pma_mcrypt_iv', base64_encode($iv));
|
PMA_setCookie('pma_mcrypt_iv', base64_encode($iv));
|
||||||
} else {
|
|
||||||
$iv = base64_decode($_COOKIE['pma_mcrypt_iv']);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user