From: Greg Gay Date: Fri, 30 Sep 2011 18:38:42 +0000 (-0000) Subject: replaced $addslashes() around $token and $token_typewith addslashes() line 156/157 X-Git-Tag: v1.2~14 X-Git-Url: https://iam.tj/gitweb/gitweb.cgi?p=acontent.git;a=commitdiff_plain;h=563bd05f312503880a6fa48629cb49f3433eb37e replaced $addslashes() around $token and $token_typewith addslashes() line 156/157 --- diff --git a/docs/include/classes/DAO/OAuthServerTokensDAO.class.php b/docs/include/classes/DAO/OAuthServerTokensDAO.class.php index 2187ed6..47bf1a7 100644 --- a/docs/include/classes/DAO/OAuthServerTokensDAO.class.php +++ b/docs/include/classes/DAO/OAuthServerTokensDAO.class.php @@ -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); }