Skip to content

Commit

Permalink
added explainer regarding unsafe mode
Browse files Browse the repository at this point in the history
  • Loading branch information
lexa-diky committed Jul 10, 2024
1 parent 092c446 commit 045d7c3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,4 +151,8 @@ Not currently, but this is planned for future releases.
Yes, safety is no goal of Hexo, please don't run untrusted code with it.

You can use safe mode to disable `cmd` and `eval` functions.
Please add `--safe` flag before command to enable it.
Please add `--safe` flag before command to enable it.

#### Why unsafe mode is default?
As Hexo is designed for quick and dirty tasks, we decided to make it as flexible as possible.
Thus safe by default approach will only complicate workflow without adding any meaningful value.

0 comments on commit 045d7c3

Please sign in to comment.