Commit b4fb6ba
committed
ValidatedSanitizedInput: make the error messages more informative
This changes two things:
1. For both the `InputNotValidated` as well as the `InputNotSanitized` error, it will now display the array keys for the variable triggering the error.
Previously, the message would just say `$_POST`, now it will say `$_POST['foo']['bar']`.
2. For the `InputNotValidated`, the error message text has been expanded to make it more obvious how to fix this issue.
Fixes 15411 parent 33b55fe commit b4fb6ba
1 file changed
+2
-2
lines changedLines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
132 | | - | |
| 132 | + | |
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
137 | | - | |
| 137 | + | |
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
| |||
0 commit comments