From 1f877e4d4e9be8d76637725f7a33305b31fe94a4 Mon Sep 17 00:00:00 2001 From: blankie Date: Fri, 7 Apr 2023 23:01:30 +0700 Subject: [PATCH] Normalize path --- servehelper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/servehelper.cpp b/servehelper.cpp index dad3698..12356b2 100644 --- a/servehelper.cpp +++ b/servehelper.cpp @@ -77,7 +77,7 @@ std::string proxy_image_url(const Config& config, blankie::murl::Url url) { if (!url.path.empty() && url.path[0] != '/') { new_url.path += '/'; } - new_url.path += std::move(url.path); + new_url.path += blankie::murl::normalize_path(std::move(url.path)); if (!new_url.query.empty() && !url.query.empty()) { new_url.query += '&'; new_url.query += std::move(url.query);