Skip to content

Commit 76125aa

Browse files
authored
Fix PHP Request Rule (DS144886) Fix It Specification (#616)
* Fix PHP Request Rule Replacements Fix #614. * Update Changelog.md
1 parent ba39d7a commit 76125aa

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

Changelog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## [1.0.35] - 2024-05-21
8+
### Rules
9+
Fix substitution pattern in PHP Request rule.
10+
711
## [1.0.35] - 2024-5-8
812
### Pipeline
913
Pipeline only changes

rules/default/security/frameworks/php.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
{
2727
"name": "Change to $_GET",
2828
"type": "RegexReplace",
29-
"replacement": "$_GET",
29+
"replacement": "$$_GET",
3030
"pattern": {
3131
"pattern": "\\$_REQUEST",
3232
"type": "regex",
@@ -39,7 +39,7 @@
3939
{
4040
"name": "Change to $_POST",
4141
"type": "RegexReplace",
42-
"replacement": "$_POST",
42+
"replacement": "$$_POST",
4343
"pattern": {
4444
"pattern": "\\$_REQUEST",
4545
"type": "regex",
@@ -52,7 +52,7 @@
5252
{
5353
"name": "Change to $_COOKIE",
5454
"type": "RegexReplace",
55-
"replacement": "$_COOKIE",
55+
"replacement": "$$_COOKIE",
5656
"pattern": {
5757
"pattern": "\\$_REQUEST",
5858
"type": "regex",

0 commit comments

Comments
 (0)