Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
justinfreeman (Agileware)
Core
Commits
2eedf85b
Commit
2eedf85b
authored
11 years ago
by
Kurund Jalmi
Browse files
Options
Downloads
Plain Diff
Merge pull request #904 from dlobo/CRM-12718
CRM-12718
parents
3b59baf5
f3a27f08
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CRM/Core/IDS.php
+10
-4
10 additions, 4 deletions
CRM/Core/IDS.php
with
10 additions
and
4 deletions
CRM/Core/IDS.php
+
10
−
4
View file @
2eedf85b
...
...
@@ -254,10 +254,16 @@ class CRM_Core_IDS {
$session
=
CRM_Core_Session
::
singleton
();
$session
->
reset
(
2
);
$msg
=
ts
(
'There is a validation error with your HTML input. Your activity is a bit suspicious, hence aborting'
);
$path
=
implode
(
'/'
,
$args
);
if
(
$path
==
in_array
(
"civicrm/ajax/rest"
,
"civicrm/api/json"
))
{
require
(
"api/v3/utils.php"
);
$error
=
civicrm_api3_create_error
(
ts
(
'There is a validation error with your HTML input. Your activity is a bit suspicious, hence aborting'
),
if
(
in_array
(
$path
,
array
(
"civicrm/ajax/rest"
,
"civicrm/api/json"
)
))
{
require_once
"api/v3/utils.php"
;
$error
=
civicrm_api3_create_error
(
$msg
,
array
(
'IP'
=>
$_SERVER
[
'REMOTE_ADDR'
],
'error_code'
=>
'IDS_KICK'
,
...
...
@@ -269,7 +275,7 @@ class CRM_Core_IDS {
echo
json_encode
(
$error
);
CRM_Utils_System
::
civiExit
();
}
CRM_Core_Error
::
fatal
(
ts
(
'There is a validation error with your HTML input. Your activity is a bit suspicious, hence aborting'
)
);
CRM_Core_Error
::
fatal
(
$msg
);
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment