Quellcode durchsuchen

wiki: handle '#' in edit page (#3767)

Unknwon vor 8 Jahren
Ursprung
Commit
32a868d431
3 geänderte Dateien mit 3 neuen und 3 gelöschten Zeilen
  1. 1 1
      gogs.go
  2. 1 1
      templates/.VERSION
  3. 1 1
      templates/repo/wiki/new.tmpl

+ 1 - 1
gogs.go

@@ -16,7 +16,7 @@ import (
 	"github.com/gogits/gogs/modules/setting"
 )
 
-const APP_VER = "0.9.147.0214"
+const APP_VER = "0.9.148.0215"
 
 func init() {
 	setting.AppVer = APP_VER

+ 1 - 1
templates/.VERSION

@@ -1 +1 @@
-0.9.147.0214
+0.9.148.0215

+ 1 - 1
templates/repo/wiki/new.tmpl

@@ -11,7 +11,7 @@
 				</div>
 			{{end}}
 		</div>
-		<form class="ui form" action="{{.Link}}" method="post">
+		<form class="ui form" action="{{EscapePound .Link}}" method="post">
 			{{.CsrfTokenHtml}}
 			<input type="hidden" name="old_title" value="{{.old_title}}">
 			<div class="field {{if .Err_Title}}error{{end}}">