]> sjero.net Git - wget/blobdiff - src/utils.c
Ensure that dir matches aren't mere prefix matches.
[wget] / src / utils.c
index a4928dabacea525261ba3806dd8f34d80f89ad6e..85a83355a6ace521faf8b84a283a20f3ae2c0fe7 100644 (file)
@@ -2205,6 +2205,8 @@ test_dir_matches_p()
     { { "*/*COMPLETE", NULL, NULL }, "foo/!COMPLETE", true },
     { { "/dir with spaces", NULL, NULL }, "dir with spaces", true },
     { { "/dir*with*spaces", NULL, NULL }, "dir with spaces", true },
+    { { "/Tmp/has", NULL, NULL }, "/Tmp/has space", false },
+    { { "/Tmp/has", NULL, NULL }, "/Tmp/has,comma", false },
   };
   
   for (i = 0; i < countof(test_array); ++i)