[Pkg-owncloud-commits] [owncloud] 46/67: Use `get_magic_quotes_gpc()` to determine if magic_quotes is enabled

David Prévot taffit at alioth.debian.org
Fri Nov 8 23:10:41 UTC 2013


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to annotated tag v4.5.1
in repository owncloud.

commit 3f3b92a14910365f7e14bd0576dc894e400d8e61
Author: Lukas Reschke <lukas at statuscode.ch>
Date:   Tue Oct 16 19:42:17 2012 +0200

    Use `get_magic_quotes_gpc()` to determine if magic_quotes is enabled
    
    set_magic_quotes_runtime gives a PHP warning
---
 lib/base.php |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/base.php b/lib/base.php
index 21b7165..f3a9db2 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -282,7 +282,7 @@ class OC{
 		ini_set('arg_separator.output', '&');
 
 		// try to switch magic quotes off.
-		if(function_exists('set_magic_quotes_runtime')) {
+		if(get_magic_quotes_gpc()) {
 			@set_magic_quotes_runtime(false);
 		}
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list