Fixe target path location check in jekyll import command - hugo - [fork] hugo port for 9front
 (HTM) git clone git@git.drkhsh.at/hugo.git
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) Submodules
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 5867cb5a92ba7bda5c559b0a7b86d2bdac10f474
 (DIR) parent 7d3dfba84b52ce8f33cc77380e3cc4c586a35201
 (HTM) Author: Jelmer Tiete <jelmer@tiete.be>
       Date:   Sun, 11 Sep 2016 01:48:31 -0700
       
       Fixe target path location check in jekyll import command
       
       
       Diffstat:
         M commands/import_jekyll.go           |       2 +-
       
       1 file changed, 1 insertion(+), 1 deletion(-)
       ---
 (DIR) diff --git a/commands/import_jekyll.go b/commands/import_jekyll.go
       @@ -81,7 +81,7 @@ func importFromJekyll(cmd *cobra.Command, args []string) error {
        
                jww.INFO.Println("Import Jekyll from:", jekyllRoot, "to:", targetDir)
        
       -        if strings.HasPrefix(targetDir, jekyllRoot) {
       +        if strings.HasPrefix(filepath.Dir(targetDir), jekyllRoot) {
                        return newUserError("Target path should not be inside the Jekyll root, aborting.")
                }