diff options
author | Anthony Fok <foka@debian.org> | 2018-06-03 05:45:33 -0600 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2018-06-04 10:09:55 +0300 |
commit | c3115292a7f2d2623cb45054a361e997ad9330c9 (patch) | |
tree | a2585cc92cce2d59179608fd03e90861db313288 /tpl | |
parent | 0c6c98e401b22fa2737bb7266742ae88722825ab (diff) |
tpl: Prevent isBaseTemplate() from matching "baseof" in dir
Fixes #4809
Diffstat (limited to 'tpl')
-rw-r--r-- | tpl/tplimpl/template.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tpl/tplimpl/template.go b/tpl/tplimpl/template.go index 74860b67e..8f91113a8 100644 --- a/tpl/tplimpl/template.go +++ b/tpl/tplimpl/template.go @@ -726,5 +726,5 @@ func isBackupFile(path string) bool { const baseFileBase = "baseof" func isBaseTemplate(path string) bool { - return strings.Contains(path, baseFileBase) + return strings.Contains(filepath.Base(path), baseFileBase) } |