Skip to content

Commit

Permalink
Default Cache.SerializerPermissions configuration option for `HTMLP…
Browse files Browse the repository at this point in the history
…urifier` is set to `0775`
  • Loading branch information
klimov-paul committed Oct 13, 2015
1 parent 2935a45 commit 8cbcbdd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions framework/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ Yii Framework 2 Change Log
- Enh #9733: Added Unprocessable Entity HTTP Exception (janfrs)
- Enh #9783: jQuery inputmask dependency updated to `~3.2.2` (samdark)
- Enh #9869: Allow path alias for SQLite database files in DSN config (ASlatius)
- Enh #9901: Default `Cache.SerializerPermissions` configuration option for `HTMLPurifier` is set to `0775` (klimov-paul)
- Enh: Added last resort measure for `FileHelper::removeDirectory()` fail to unlink symlinks under Windows (samdark)
- Chg #9369: `Yii::$app->user->can()` now returns `false` instead of erroring in case `authManager` component is not configured (creocoder)
- Chg #9411: `DetailView` now automatically sets container tag ID in case it's not specified (samdark)
Expand Down
3 changes: 2 additions & 1 deletion framework/helpers/BaseHtmlPurifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ public static function process($content, $config = null)
$configInstance->autoFinalize = false;
$purifier = \HTMLPurifier::instance($configInstance);
$purifier->config->set('Cache.SerializerPath', \Yii::$app->getRuntimePath());

$purifier->config->set('Cache.SerializerPermissions', 0775);

if ($config instanceof \Closure) {
call_user_func($config, $configInstance);
}
Expand Down

0 comments on commit 8cbcbdd

Please sign in to comment.