aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilly Micieli <micieli@laposte.net>2019-10-23 17:46:27 +0200
committerWilly Micieli <micieli@laposte.net>2019-10-23 17:46:27 +0200
commitb1d92286ee3607eec4a2601f8f34f0989a98eb7f (patch)
treef167e60283cf9d8d1aaf0d9cb2f85f244ef50bda
parent20373c2af9fe806d1b129b8b2702fcd54a6fb1d2 (diff)
downloadimperium-b1d92286ee3607eec4a2601f8f34f0989a98eb7f.zip
imperium-b1d92286ee3607eec4a2601f8f34f0989a98eb7f.tar.gz
add security
-rw-r--r--imperium/Security/Auth/Oauth.php24
1 files changed, 12 insertions, 12 deletions
diff --git a/imperium/Security/Auth/Oauth.php b/imperium/Security/Auth/Oauth.php
index b93f240..101fdb2 100644
--- a/imperium/Security/Auth/Oauth.php
+++ b/imperium/Security/Auth/Oauth.php
@@ -131,17 +131,17 @@
return Users::count();
}
-
- /**
- *
- *
- * @param string $expected
- *
- * @throws Kedavra
- *
- * @return object
- *
- */
+
+ /**
+ *
+ *
+ * @param string $expected
+ *
+ * @return object
+ * @throws DependencyException
+ * @throws Kedavra
+ * @throws NotFoundException
+ */
public function find(string $expected)
{
@@ -223,7 +223,7 @@
private function column() : string
{
- return Users::key();
+ return addslashes(Users::key());
}
/**