Skip to content

Commit ad6b3be

Browse files
committed
Minify blocking json message
1 parent 0c35caf commit ad6b3be

25 files changed

+32
-32
lines changed

appsec/src/extension/request_abort.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ static const char static_error_html[] =
6060
"target=\"_blank\">Datadog</a></p></footer></body></html>";
6161

6262
static const char static_error_json[] =
63-
"{\"errors\": [{\"title\": \"You've been blocked\", \"detail\": \"Sorry, yo"
63+
"{\"errors\":[{\"title\":\"You've been blocked\",\"detail\":\"Sorry, yo"
6464
"u cannot access this page. Please contact the customer service team. Secur"
65-
"ity provided by Datadog.\"}], \"security_response_id\": "
65+
"ity provided by Datadog.\"}],\"security_response_id\":"
6666
"\"[security_response_id]\"}";
6767

6868
static zend_string *_initial_cwd;

appsec/tests/extension/push_params_block_01.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@ var_dump("THIS SHOULD NOT GET IN THE OUTPUT");
2525
Status: 404 Not Found
2626
Content-type: application/json
2727
--EXPECTF--
28-
{"errors": [{"title": "You've been blocked", "detail": "Sorry, you cannot access this page. Please contact the customer service team. Security provided by Datadog."}], "security_response_id": ""}
28+
{"errors":[{"title":"You've been blocked","detail":"Sorry, you cannot access this page. Please contact the customer service team. Security provided by Datadog."}],"security_response_id":""}
2929
Warning: datadog\appsec\push_addresses(): Datadog blocked the request and presented a static error page. No action required. Security Response ID: in %s on line %d

appsec/tests/extension/push_params_block_04.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@ var_dump("THIS SHOULD NOT GET IN THE OUTPUT");
2525
Status: 404 Not Found
2626
Content-type: application/json
2727
--EXPECTF--
28-
{"errors": [{"title": "You've been blocked", "detail": "Sorry, you cannot access this page. Please contact the customer service team. Security provided by Datadog."}], "security_response_id": "some-id-here"}
28+
{"errors":[{"title":"You've been blocked","detail":"Sorry, you cannot access this page. Please contact the customer service team. Security provided by Datadog."}],"security_response_id":"some-id-here"}
2929
Warning: datadog\appsec\push_addresses(): Datadog blocked the request and presented a static error page. No action required. Security Response ID: some-id-here in %s on line %d

appsec/tests/extension/req_abort_empty_custom_json_template.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@ rinit();
2121
Status: 500 Internal Server Error
2222
Content-type: application/json
2323
--EXPECTF--
24-
{"errors": [{"title": "You've been blocked", "detail": "Sorry, you cannot access this page. Please contact the customer service team. Security provided by Datadog."}], "security_response_id": ""}
24+
{"errors":[{"title":"You've been blocked","detail":"Sorry, you cannot access this page. Please contact the customer service team. Security provided by Datadog."}],"security_response_id":""}
2525
Warning: datadog\appsec\testing\rinit(): Datadog blocked the request and presented a static error page. No action required. Security Response ID: in %s on line %d

appsec/tests/extension/req_abort_from_rinit_auto.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@ rinit();
1919
Status: 403 Forbidden
2020
Content-type: application/json
2121
--EXPECTF--
22-
{"errors": [{"title": "You've been blocked", "detail": "Sorry, you cannot access this page. Please contact the customer service team. Security provided by Datadog."}], "security_response_id": ""}
22+
{"errors":[{"title":"You've been blocked","detail":"Sorry, you cannot access this page. Please contact the customer service team. Security provided by Datadog."}],"security_response_id":""}
2323
Warning: datadog\appsec\testing\rinit(): Datadog blocked the request and presented a static error page. No action required. Security Response ID: in %s on line %d

appsec/tests/extension/req_abort_from_rinit_invalid_content_type.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@ rinit();
2020
Status: 403 Forbidden
2121
Content-type: application/json
2222
--EXPECTF--
23-
{"errors": [{"title": "You've been blocked", "detail": "Sorry, you cannot access this page. Please contact the customer service team. Security provided by Datadog."}], "security_response_id": ""}
23+
{"errors":[{"title":"You've been blocked","detail":"Sorry, you cannot access this page. Please contact the customer service team. Security provided by Datadog."}],"security_response_id":""}
2424
Warning: datadog\appsec\testing\rinit(): Datadog blocked the request and presented a static error page. No action required. Security Response ID: in %s on line %d

appsec/tests/extension/req_abort_from_rinit_invalid_status_code.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@ rinit();
2020
Status: 403 Forbidden
2121
Content-type: application/json
2222
--EXPECTF--
23-
{"errors": [{"title": "You've been blocked", "detail": "Sorry, you cannot access this page. Please contact the customer service team. Security provided by Datadog."}], "security_response_id": ""}
23+
{"errors":[{"title":"You've been blocked","detail":"Sorry, you cannot access this page. Please contact the customer service team. Security provided by Datadog."}],"security_response_id":""}
2424
Warning: datadog\appsec\testing\rinit(): Datadog blocked the request and presented a static error page. No action required. Security Response ID: in %s on line %d

appsec/tests/extension/req_abort_from_rinit_json_404.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@ rinit();
1919
Status: 404 Not Found
2020
Content-type: application/json
2121
--EXPECTF--
22-
{"errors": [{"title": "You've been blocked", "detail": "Sorry, you cannot access this page. Please contact the customer service team. Security provided by Datadog."}], "security_response_id": ""}
22+
{"errors":[{"title":"You've been blocked","detail":"Sorry, you cannot access this page. Please contact the customer service team. Security provided by Datadog."}],"security_response_id":""}
2323
Warning: datadog\appsec\testing\rinit(): Datadog blocked the request and presented a static error page. No action required. Security Response ID: in %s on line %d

appsec/tests/extension/req_abort_from_rshutdown_auto.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ rshutdown();
2323
Status: 403 Forbidden
2424
Content-type: application/json
2525
--EXPECTF--
26-
{"errors": [{"title": "You've been blocked", "detail": "Sorry, you cannot access this page. Please contact the customer service team. Security provided by Datadog."}], "security_response_id": ""}
26+
{"errors":[{"title":"You've been blocked","detail":"Sorry, you cannot access this page. Please contact the customer service team. Security provided by Datadog."}],"security_response_id":""}

appsec/tests/extension/req_abort_from_user_login_success_event.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,5 @@ echo "SHOULD NOT BE REACHED\n";
3636
Status: 404 Not Found
3737
Content-type: application/json
3838
--EXPECTF--
39-
{"errors": [{"title": "You've been blocked", "detail": "Sorry, you cannot access this page. Please contact the customer service team. Security provided by Datadog."}], "security_response_id": ""}
39+
{"errors":[{"title":"You've been blocked","detail":"Sorry, you cannot access this page. Please contact the customer service team. Security provided by Datadog."}],"security_response_id":""}
4040
Warning: datadog\appsec\track_user_login_success_event(): Datadog blocked the request and presented a static error page. No action required. Security Response ID: in %s on line %d

0 commit comments

Comments
 (0)