replaced $addslashes() around $token and $token_typewith addslashes() line 156/157
authorGreg Gay <info@atutor.ca>
Fri, 30 Sep 2011 18:38:42 +0000 (18:38 -0000)
committerGreg Gay <info@atutor.ca>
Fri, 30 Sep 2011 18:38:42 +0000 (18:38 -0000)
docs/include/classes/DAO/OAuthServerTokensDAO.class.php

index 2187ed6..47bf1a7 100644 (file)
@@ -151,10 +151,10 @@ class OAuthServerTokensDAO extends DAO {
        */
        function getByTokenAndType($token, $token_type)
        {
-           global $addslashes;
+
            $sql = "SELECT * FROM ".TABLE_PREFIX."oauth_server_tokens 
-                    WHERE token = '".$addslashes($token)."'
-                      AND token_type = '".$addslashes($token_type)."'";
+                    WHERE token = '".addslashes($token)."'
+                      AND token_type = '".addslashes($token_type)."'";
            return $this->execute($sql);
        }