aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cmd/hook.go4
-rw-r--r--gogs.go2
-rw-r--r--templates/.VERSION2
-rw-r--r--templates/repo/home.tmpl2
4 files changed, 5 insertions, 5 deletions
diff --git a/cmd/hook.go b/cmd/hook.go
index 8533e3b1..16ea6b64 100644
--- a/cmd/hook.go
+++ b/cmd/hook.go
@@ -236,9 +236,9 @@ func runHookPostReceive(c *cli.Context) error {
log.Error(2, "PushUpdate: %v", err)
}
- // Ask for running deliver hook and test pull request tasks.
+ // Ask for running deliver hook and test pull request tasks
reqURL := setting.LocalURL + options.RepoUserName + "/" + options.RepoName + "/tasks/trigger?branch=" +
- strings.TrimPrefix(options.RefFullName, git.BRANCH_PREFIX) +
+ template.EscapePound(strings.TrimPrefix(options.RefFullName, git.BRANCH_PREFIX)) +
"&secret=" + os.Getenv(http.ENV_REPO_OWNER_SALT_MD5) +
"&pusher=" + os.Getenv(http.ENV_AUTH_USER_ID)
log.Trace("Trigger task: %s", reqURL)
diff --git a/gogs.go b/gogs.go
index a6830a00..1dac9f7e 100644
--- a/gogs.go
+++ b/gogs.go
@@ -16,7 +16,7 @@ import (
"github.com/gogits/gogs/pkg/setting"
)
-const APP_VER = "0.11.47.0425"
+const APP_VER = "0.11.48.0425"
func init() {
setting.AppVer = APP_VER
diff --git a/templates/.VERSION b/templates/.VERSION
index 58616fef..8aa524aa 100644
--- a/templates/.VERSION
+++ b/templates/.VERSION
@@ -1 +1 @@
-0.11.47.0425 \ No newline at end of file
+0.11.48.0425 \ No newline at end of file
diff --git a/templates/repo/home.tmpl b/templates/repo/home.tmpl
index 17e14d6d..ce49e380 100644
--- a/templates/repo/home.tmpl
+++ b/templates/repo/home.tmpl
@@ -25,7 +25,7 @@
<div class="ui secondary menu">
{{if .PullRequestCtx.Allowed}}
<div class="fitted item">
- <a href="{{.BaseRepo.Link}}/compare/{{.BaseRepo.DefaultBranch}}...{{.PullRequestCtx.HeadInfo}}">
+ <a href="{{.BaseRepo.Link}}/compare/{{EscapePound .BaseRepo.DefaultBranch}}...{{EscapePound .PullRequestCtx.HeadInfo}}">
<button class="ui green small button"><i class="octicon octicon-git-compare"></i></button>
</a>
</div>