mirror of
https://github.com/mindoc-org/mindoc.git
synced 2025-09-19 18:22:10 +08:00
修复BUG
This commit is contained in:
@@ -43,7 +43,7 @@ func (c *BaseController) Prepare() {
|
||||
c.Option = make(map[string]string, len(options))
|
||||
for _, item := range options {
|
||||
c.Data[item.OptionName] = item.OptionValue
|
||||
c.Option[item.OptionName] = string(blackfriday.MarkdownBasic([]byte(item.OptionValue)))
|
||||
c.Option[item.OptionName] = item.OptionValue
|
||||
|
||||
if strings.EqualFold(item.OptionName, "ENABLE_ANONYMOUS") && item.OptionValue == "true" {
|
||||
c.EnableAnonymous = true
|
||||
|
Reference in New Issue
Block a user