Annotation of pkgsrc/databases/phpldapadmin/patches/patch-lib_common.php, revision 1.1
1.1 ! khorben 1: $NetBSD$
! 2:
! 3: --- lib/common.php.orig 2012-10-01 06:54:14.000000000 +0000
! 4: +++ lib/common.php
! 5: @@ -296,7 +296,9 @@ if ($app['language'] == 'auto') {
! 6: * Strip slashes from GET, POST, and COOKIE variables if this
! 7: * PHP install is configured to automatically addslashes()
! 8: */
! 9: -if (@get_magic_quotes_gpc() && (! isset($slashes_stripped) || ! $slashes_stripped)) {
! 10: +if (@version_compare(phpversion(), '5.4.0', '<') &&
! 11: + @get_magic_quotes_gpc() &&
! 12: + (!isset($slashes_stripped) || !$slashes_stripped)) {
! 13: array_stripslashes($_REQUEST);
! 14: array_stripslashes($_GET);
! 15: array_stripslashes($_POST);
CVSweb <webmaster@jp.NetBSD.org>