Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Server
Tiny Tiny RSS
Commits
4afcf635
Commit
4afcf635
authored
Jul 20, 2016
by
Andrew Dolgov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
api host: add session validation
parent
5d97019d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
api/index.php
api/index.php
+10
-0
No files found.
api/index.php
View file @
4afcf635
...
...
@@ -58,6 +58,16 @@
if
(
!
init_plugins
())
return
;
if
(
$_SESSION
[
"uid"
])
{
if
(
!
validate_session
())
{
header
(
"Content-Type: text/json"
);
print
json_encode
(
array
(
"seq"
=>
-
1
,
"status"
=>
1
,
"content"
=>
array
(
"error"
=>
"NOT_LOGGED_IN"
)));
return
;
}
load_user_plugins
(
$_SESSION
[
"uid"
]);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment