[geeklog-cvs] geeklog: Minor cleanup when checking get_magic_quotes_gpc() sinc...
geeklog-cvs at lists.geeklog.net
geeklog-cvs at lists.geeklog.net
Sun Apr 29 03:55:08 EDT 2012
changeset 8641:48e4ba4ddf76
url: http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/48e4ba4ddf76
user: Dirk Haun <dirk at haun-online.de>
date: Sun Apr 29 09:55:00 2012 +0200
description:
Minor cleanup when checking get_magic_quotes_gpc() since it used to return 0 or 1 but returns False as of PHP 5.4 (where it's only a dummy function for backward compatibility). Also see https://bugs.php.net/bug.php?id=61784
diffstat:
public_html/lib-common.php | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r c6b186a5af60 -r 48e4ba4ddf76 public_html/lib-common.php
--- a/public_html/lib-common.php Sat Apr 28 19:40:59 2012 +0100
+++ b/public_html/lib-common.php Sun Apr 29 09:55:00 2012 +0200
@@ -6464,7 +6464,7 @@
*/
function COM_stripslashes($text)
{
- if (@get_magic_quotes_gpc() == 1) {
+ if (@get_magic_quotes_gpc()) {
if (is_array($text)) {
return(array_map('stripslashes', $text));
} else {
More information about the geeklog-cvs
mailing list