projects
/
acontent.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c4f1775
)
replaced $addslashes() around $token and $token_typewith addslashes() line 156/157
author
Greg Gay
<info@atutor.ca>
Fri, 30 Sep 2011 18:38:42 +0000
(18:38 -0000)
committer
Greg Gay
<info@atutor.ca>
Fri, 30 Sep 2011 18:38:42 +0000
(18:38 -0000)
docs/include/classes/DAO/OAuthServerTokensDAO.class.php
patch
|
blob
|
history
diff --git
a/docs/include/classes/DAO/OAuthServerTokensDAO.class.php
b/docs/include/classes/DAO/OAuthServerTokensDAO.class.php
index
2187ed6
..
47bf1a7
100644
(file)
--- 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)
{
*/
function getByTokenAndType($token, $token_type)
{
- global $addslashes;
+
$sql = "SELECT * FROM ".TABLE_PREFIX."oauth_server_tokens
$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);
}
return $this->execute($sql);
}