Commit b0a6a9a
committed
Fix a bunch of deprecation warnings
By setting $_SERVER["PATH_INFO"] and $_REQUEST['page'] to empty
strings if they are not already defined. This is to avoid passing
`null` to `preg_match()` and `str_replace()` (used in
`sanitizeFilename()`), since this is deprecated in PHP 8.1.
This approach is recommended here:
https://php.watch/versions/8.1/internal-func-non-nullable-null-deprecation1 parent ab563be commit b0a6a9a
1 file changed
+8
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
214 | 214 | | |
215 | 215 | | |
216 | 216 | | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
217 | 225 | | |
218 | 226 | | |
219 | 227 | | |
| |||
0 commit comments