Skip to content
This repository was archived by the owner on Sep 8, 2020. It is now read-only.

Commit 230ae41

Browse files
author
Tigran Makaryan
committed
Fixed issue which started in version 1.6.0
Fix: DELETE request validator removed from input_filter keyword and need to manually specify before usage. Added test calling testReturnsNothingOnDeleteRequestIfContentIsInValidAndValidationSetViaInputFilterKeyword test/ContentValidationListenerTest.php code styling fixes
1 parent 9e3bc47 commit 230ae41

File tree

2 files changed

+1238
-793
lines changed

2 files changed

+1238
-793
lines changed

src/ContentValidationListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ protected function getInputFilterService($controllerService, $method, $isCollect
379379
return $this->config[$controllerService][$method];
380380
}
381381

382-
if (in_array($method, $this->methodsWithoutBodies)) {
382+
if (in_array($method, $this->methodsWithoutBodies) || $method === 'DELETE') {
383383
return false;
384384
}
385385

0 commit comments

Comments
 (0)