]> git.joonet.de Git - adminer.git/commitdiff
Whitespace
authorjakubvrana <jakubvrana@7c3ca157-0c34-0410-bff1-cbf682f78f5c>
Thu, 3 Dec 2009 21:02:04 +0000 (21:02 +0000)
committerjakubvrana <jakubvrana@7c3ca157-0c34-0410-bff1-cbf682f78f5c>
Thu, 3 Dec 2009 21:02:04 +0000 (21:02 +0000)
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@1260 7c3ca157-0c34-0410-bff1-cbf682f78f5c

adminer/user.inc.php
compile.php

index df47e2dad2b436b2cb337d3278af72dcb2b7e419..8cf5538ff4fa659032016e5edde3fe85466e48df 100644 (file)
@@ -72,8 +72,8 @@ if ($_POST && !$error) {
                                        unset($grants[$object]);
                                }
                                if (preg_match('~^(.+)\\s*(\\(.*\\))?$~U', $object, $match) && (
-                               !grant("REVOKE", $revoke, $match[2], " ON $match[1] FROM $new_user") //! SQL injection
-                               || !grant("GRANT", $grant, $match[2], " ON $match[1] TO $new_user")
+                                       !grant("REVOKE", $revoke, $match[2], " ON $match[1] FROM $new_user") //! SQL injection
+                                       || !grant("GRANT", $grant, $match[2], " ON $match[1] TO $new_user")
                                )) {
                                        $error = true;
                                        break;
index e99667f3d02210427354bc209338872d104b503e..cf990436e5e0c56b5bffea0330842c850f12a7ff 100644 (file)
@@ -103,7 +103,7 @@ function php_shrink($input) {
                        $token = array(0, $token);
                }
                if ($tokens[$i+2][0] === T_CLOSE_TAG && $tokens[$i+3][0] === T_INLINE_HTML && $tokens[$i+4][0] === T_OPEN_TAG
-               && strlen(addcslashes($tokens[$i+3][1], "'\\")) < strlen($tokens[$i+3][1]) + 3
+                       && strlen(addcslashes($tokens[$i+3][1], "'\\")) < strlen($tokens[$i+3][1]) + 3
                ) {
                        $tokens[$i+2] = array(T_ECHO, 'echo');
                        $tokens[$i+3] = array(T_CONSTANT_ENCAPSED_STRING, "'" . addcslashes($tokens[$i+3][1], "'\\") . "'");