PluginProbe
User Access Manager / 2.3.18
User Access Manager v2.3.18
2.3.20 2.3.19 2.3.18 2.3.17 2.3.16 2.3.15 2.3.14 2.3.13 trunk 0.6 0.6.1 0.6.2 0.7 0.7 Beta 0.7.0.1 0.8 0.8.0.1 0.8.0.2 0.9 0.9.1 0.9.1.1 0.9.1.2 0.9.1.3 0.9.1.4 1.0 All 136 releases
← All changes | src/Controller/BaseControllerTrait.php +2 -2 trunk2.3.18 View file →
@@ -17,9 +17,9 @@
17 17 abstract protected function getWordpressConfig(): WordpressConfig;
18 18
19 19 public function getRequestUrl(): string
20 20 {
21 - return htmlentities($_SERVER['REQUEST_URI'] ?? '', ENT_QUOTES);
21 + return htmlentities($_SERVER['REQUEST_URI'], ENT_NOQUOTES);
22 22 }
23 23
24 24 private function sanitizeValue(mixed $value): mixed
25 25 {
@@ -33,9 +33,9 @@
33 33 return $sanitized;
34 34 }
35 35
36 36 if (is_string($value) === true) {
37 - return htmlspecialchars(stripslashes($value), ENT_QUOTES);
37 + return htmlspecialchars(stripslashes(preg_replace('/\\+(["|\'])/', '$1', $value)), ENT_NOQUOTES);
38 38 }
39 39
40 40 return $value;
41 41 }