Commit def2af2
committed
fix: remove redundant sanitize_uri() on already-sanitized HTTP_REFERER
global.php:582 applies sanitize_uri() to $_SERVER['HTTP_REFERER'] on
every request. Calling it again in link.php causes a second urldecode()
pass, which can alter valid percent-encoded characters. Use the
pre-sanitized value directly; the external-host guard remains.
Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>1 parent dda066c commit def2af2
1 file changed
+5
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
37 | 39 | | |
38 | 40 | | |
39 | 41 | | |
40 | | - | |
| 42 | + | |
41 | 43 | | |
42 | 44 | | |
43 | 45 | | |
44 | 46 | | |
45 | | - | |
| 47 | + | |
46 | 48 | | |
47 | 49 | | |
48 | 50 | | |
| |||
0 commit comments