~nicolai_dagestad/url_handler

94f8811110d794ac7e0cbde42a39050193afb51b — Nicolai Dagestad 1 year, 2 months ago 5700a3b
Add message about non working parameter interpolation
1 files changed, 3 insertions(+), 0 deletions(-)

M main.go
M main.go => main.go +3 -0
@@ 166,10 166,13 @@ func run_filter(filter string, url *URL, config *Config, handler Handler) (bool,

func interpolate(str []string, ctx map[byte]string) ([]string, error) {
	added_url := false
	log(LOG_DEBUG, "Starting variable interpolation in the cmdline\n")
	log(LOG_DEBUG, "str: %s; ctx: %v\n", str, ctx)
	for idx, _ := range str {
		var new_str string

		// FIXME, this is some ugly parsing and stuff, but it works™
		// It does in fact, not work
	outer:
		for i := 0; i < len(str[idx]); i++ {
			c := str[idx][i]