mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
parent
be017f187e
commit
be190fdb0d
2 changed files with 5 additions and 1 deletions
|
@ -668,6 +668,8 @@ func applyFnToThis(fn, this reflect.Value, args ...interface{}) (reflect.Value,
|
|||
|
||||
if len(args) < num {
|
||||
return reflect.ValueOf(nil), errors.New("Too few arguments")
|
||||
} else if len(args) > num {
|
||||
return reflect.ValueOf(nil), errors.New("Too many arguments")
|
||||
}
|
||||
|
||||
res := fn.Call(n)
|
||||
|
|
|
@ -15,7 +15,9 @@ func TestTplGoFuzzReports(t *testing.T) {
|
|||
// Issue #1089
|
||||
{"{{apply .C \"first\" }}", 2},
|
||||
// Issue #1090
|
||||
{"{{ slicestr \"000000\" 10}}", 2}} {
|
||||
{"{{ slicestr \"000000\" 10}}", 2},
|
||||
// Issue #1091
|
||||
{"{{apply .C \"first\" 0 0 0}}", 2}} {
|
||||
templ := New()
|
||||
|
||||
d := &Data{
|
||||
|
|
Loading…
Reference in a new issue