Commit 69a9125
committed
Fix: Suppress HTMLPurifier cache warning by using temp directory for serializer
- Updated InputSanitizer to configure HTMLPurifier with a safe, writable
Cache.SerializerPath pointing to sys_get_temp_dir().
- Disabled Cache.DefinitionImpl to prevent disk writes during testing and
avoid PHPUnit warnings.
- Eliminates “Base directory .../storage/purifier_cache does not exist”
warning triggered across sanitization tests.
- Ensures consistent, warning-free execution in CI and read-only environments.1 parent a04a2e1 commit 69a9125
2 files changed
Lines changed: 12 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
87 | 91 | | |
88 | 92 | | |
89 | 93 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
99 | | - | |
| 99 | + | |
100 | 100 | | |
| 101 | + | |
| 102 | + | |
101 | 103 | | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
102 | 108 | | |
103 | 109 | | |
104 | 110 | | |
| |||
0 commit comments