daemon: sanitize all directory separators
commit9a7f1ce8b78dae09cf4510a98bd6b81d0d478772
authorRené Scharfe <l.s.r@web.de>
Thu, 25 Mar 2021 16:21:24 +0000 (25 17:21 +0100)
committerJunio C Hamano <gitster@pobox.com>
Sat, 27 Mar 2021 05:00:12 +0000 (26 22:00 -0700)
treec2ec80cb1429ee8624fe4847e77c0d0a80517e1f
parenta5828ae6b52137b913b978e16cd2334482eb4c1f
daemon: sanitize all directory separators

When sanitizing client-supplied strings on Windows, also strip off
backslashes, not just slashes.

Signed-off-by: René Scharfe <l.s.r@web.de>
Acked-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
daemon.c