]> source.dussan.org Git - gitea.git/commitdiff
fix #367
authorUnknwon <joe2010xtmf@163.com>
Mon, 25 Aug 2014 01:45:39 +0000 (09:45 +0800)
committerUnknwon <joe2010xtmf@163.com>
Mon, 25 Aug 2014 01:45:39 +0000 (09:45 +0800)
gogs.go
modules/setting/setting.go
templates/.VERSION

diff --git a/gogs.go b/gogs.go
index 5c93ae26d543ea67d1186d61c89fb720b182e002..bdd19cfffeeb96a72b1ca176e99a0a5d898a41e7 100644 (file)
--- a/gogs.go
+++ b/gogs.go
@@ -17,7 +17,7 @@ import (
        "github.com/gogits/gogs/modules/setting"
 )
 
-const APP_VER = "0.4.7.0824 Alpha"
+const APP_VER = "0.4.7.0825 Alpha"
 
 func init() {
        runtime.GOMAXPROCS(runtime.NumCPU())
index 0cf1a789309ab9a3f08418ae4e198ec3f95d6369..deb16518957afb59a19c1ad0e24addfb2e72123c 100644 (file)
@@ -156,7 +156,10 @@ func NewConfigContext() {
 
        AppName = Cfg.MustValue("", "APP_NAME", "Gogs: Go Git Service")
        AppLogo = Cfg.MustValue("", "APP_LOGO", "img/favicon.png")
-       AppUrl = Cfg.MustValue("server", "ROOT_URL", "http://localhost:3000")
+       AppUrl = Cfg.MustValue("server", "ROOT_URL", "http://localhost:3000/")
+       if AppUrl[len(AppUrl)-1] != '/' {
+               AppUrl += "/"
+       }
 
        Protocol = HTTP
        if Cfg.MustValue("server", "PROTOCOL") == "https" {
index 3e68f858b5548eb2ecabb9cd096c364da9752e1e..f4c20dee1e285ab702eb1811e0673ecb6dea9c83 100644 (file)
@@ -1 +1 @@
-0.4.7.0824 Alpha
\ No newline at end of file
+0.4.7.0825 Alpha
\ No newline at end of file