Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
ISPConfig 3
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
isp
ISPConfig 3
Commits
87b3ba14
Commit
87b3ba14
authored
Jan 12, 2018
by
Till Brehm
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed
#4912
Remote API call fails with IDS security error
parent
da42d9b7
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
1 deletion
+7
-1
interface/lib/app.inc.php
interface/lib/app.inc.php
+1
-1
interface/web/remote/index.php
interface/web/remote/index.php
+2
-0
interface/web/remote/json.php
interface/web/remote/json.php
+2
-0
interface/web/remote/rest.php
interface/web/remote/rest.php
+2
-0
No files found.
interface/lib/app.inc.php
View file @
87b3ba14
...
...
@@ -342,7 +342,7 @@ $app = new app();
// load and enable PHP Intrusion Detection System (PHPIDS)
$ids_security_config
=
$app
->
getconf
->
get_security_config
(
'ids'
);
if
(
is_dir
(
ISPC_CLASS_PATH
.
'/IDS'
)
&&
(
$ids_security_config
[
'ids_anon_enabled'
]
==
'yes'
||
$ids_security_config
[
'ids_user_enabled'
]
==
'yes'
||
$ids_security_config
[
'ids_admin_enabled'
]
==
'yes'
))
{
if
(
is_dir
(
ISPC_CLASS_PATH
.
'/IDS'
)
&&
!
defined
(
'REMOTE_API_CALL'
)
&&
(
$ids_security_config
[
'ids_anon_enabled'
]
==
'yes'
||
$ids_security_config
[
'ids_user_enabled'
]
==
'yes'
||
$ids_security_config
[
'ids_admin_enabled'
]
==
'yes'
))
{
$app
->
uses
(
'ids'
);
$app
->
ids
->
start
();
}
...
...
interface/web/remote/index.php
View file @
87b3ba14
<?php
define
(
'REMOTE_API_CALL'
,
true
);
require_once
'../../lib/config.inc.php'
;
$conf
[
'start_session'
]
=
false
;
require_once
'../../lib/app.inc.php'
;
...
...
interface/web/remote/json.php
View file @
87b3ba14
<?php
define
(
'REMOTE_API_CALL'
,
true
);
require_once
'../../lib/config.inc.php'
;
$conf
[
'start_session'
]
=
false
;
require_once
'../../lib/app.inc.php'
;
...
...
interface/web/remote/rest.php
View file @
87b3ba14
<?php
define
(
'REMOTE_API_CALL'
,
true
);
require_once
'../../lib/config.inc.php'
;
$conf
[
'start_session'
]
=
false
;
require_once
'../../lib/app.inc.php'
;
...
...
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