We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 36de3db + 330ee3d commit 15941fbCopy full SHA for 15941fb
EditorJS/BlockHandler.php
@@ -258,11 +258,12 @@ private function getDefaultPurifier()
258
$sanitizer->set('AutoFormat.RemoveEmpty', true);
259
$sanitizer->set('HTML.DefinitionID', 'html5-definitions');
260
261
- if (!is_dir('/tmp/purifier')) {
262
- mkdir('/tmp/purifier', 0777, true);
+ $cacheDirectory = sys_get_temp_dir() . DIRECTORY_SEPARATOR . 'purifier';
+ if (!is_dir($cacheDirectory)) {
263
+ mkdir($cacheDirectory, 0777, true);
264
}
265
- $sanitizer->set('Cache.SerializerPath', '/tmp/purifier');
266
+ $sanitizer->set('Cache.SerializerPath', $cacheDirectory);
267
268
return $sanitizer;
269
0 commit comments