git.cweiske.de
/
anoweco.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b27c705
)
allow empty code in id mode
author
Christian Weiske
<cweiske@cweiske.de>
Wed, 3 Aug 2016 20:31:19 +0000
(22:31 +0200)
committer
Christian Weiske
<cweiske@cweiske.de>
Wed, 3 Aug 2016 20:31:19 +0000
(22:31 +0200)
www/auth.php
patch
|
blob
|
history
diff --git
a/www/auth.php
b/www/auth.php
index 944e334290d34a2fea0894fc5601d7b511dd5f7b..1a617d787fb3e2c64653f738a43a5e38321191d0 100644
(file)
--- a/
www/auth.php
+++ b/
www/auth.php
@@
-115,7
+115,7
@@
if ($_SERVER['REQUEST_METHOD'] == 'GET') {
$state = getOptionalParameter($_POST, 'state', null);
$code = getOptionalParameter($_POST, 'code', null);
- if ($code !== null) {
+ if ($code !== null
&& $code !== ''
) {
//code only given for "code" response_type, not for "id" mode
parse_str(base64_decode($code), $codeParts);
$emoji = verifyParameter($codeParts, 'emoji');