models/mirror: escape credentials before write mirror address (#4014)

Special characters such as '@', ';', '#' and ':' could occur in
password portion of credentials, which breaks the interpretation
and saves 'config' file in with extra characters that are not
recognized by Git (due to INI library).
This commit is contained in:
Unknwon
2017-04-04 19:40:46 -04:00
parent fe25effe7c
commit ae1d50d19a
4 changed files with 59 additions and 3 deletions

View File

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