We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7a82eef commit 2ef12ceCopy full SHA for 2ef12ce
1 file changed
cmd/liquid/main.go
@@ -14,6 +14,7 @@ import (
14
"fmt"
15
"io"
16
"os"
17
+ "path/filepath"
18
"strings"
19
20
"github.com/osteele/liquid"
@@ -69,7 +70,7 @@ func main() {
69
70
case 0:
71
// use stdin
72
case 1:
- stdin, err = os.Open(args[0])
73
+ stdin, err = os.Open(filepath.Clean(args[0]))
74
default:
75
err = errors.New("too many arguments")
76
}
0 commit comments