git.cweiske.de
/
indieauth-openid.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
63a168f
)
Use central error method
author
Christian Weiske
<
[email protected]
>
Fri, 28 Jul 2017 18:17:47 +0000
(20:17 +0200)
committer
Christian Weiske
<
[email protected]
>
Fri, 28 Jul 2017 18:17:47 +0000
(20:17 +0200)
www/index.php
patch
|
blob
|
history
diff --git
a/www/index.php
b/www/index.php
index cb698454c0e88bdbfe7932bc705e9ccb013b95ed..ca89855e6f1a1aff899e8e16dd8e1faf228d7319 100644
(file)
--- a/
www/index.php
+++ b/
www/index.php
@@
-246,9
+246,7
@@
if ($_SERVER['REQUEST_METHOD'] == 'GET') {
$me = validate_token($token, $redirect_uri, $client_id, $state);
if ($me === false) {
- header('HTTP/1.0 400 Bad Request');
- echo "Validating token failed\n";
- exit(1);
+ error('Validating token failed');
}
header('Content-type: application/x-www-form-urlencoded');
echo 'me=' . urlencode($me);