summaryrefslogtreecommitdiffstats
path: root/modules/base
diff options
context:
space:
mode:
Diffstat (limited to 'modules/base')
-rw-r--r--modules/base/markdown.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/base/markdown.go b/modules/base/markdown.go
index 0ef379b8ed..265deffa3e 100644
--- a/modules/base/markdown.go
+++ b/modules/base/markdown.go
@@ -21,6 +21,8 @@ import (
"github.com/gogits/gogs/modules/setting"
)
+// TODO: put this into 'markdown' module.
+
func isletter(c byte) bool {
return (c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z')
}
@@ -187,7 +189,7 @@ func cutoutVerbosePrefix(prefix string) string {
if prefix[i] == '/' {
count++
}
- if count >= 3 {
+ if count >= 3+setting.AppSubUrlDepth {
return prefix[:i]
}
}