Explorar o código

Fix invalid path bug

Zed %!s(int64=7) %!d(string=hai) anos
pai
achega
02e7b1dcab
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/utils.nim

+ 1 - 1
src/utils.nim

@@ -42,7 +42,7 @@ proc cleanFilename*(filename: string): string =
 
 proc filterParams*(params: Table): seq[(string, string)] =
   let filter = ["name", "id"]
-  toSeq(params.pairs()).filterIt(it[0] notin filter)
+  toSeq(params.pairs()).filterIt(it[0] notin filter and it[1].len > 0)
 
 proc isTwitterUrl*(url: string): bool =
   parseUri(url).hostname in twitterDomains