snac2

Fork of https://codeberg.org/grunfink/snac2
git clone https://git.inz.fi/snac2
Log | Files | Refs | README | LICENSE

commit e4e58d22224d37b9db760eda5bb25a76c3eea5b2
parent 7dc42f5b3b4a8178eb514e5adf255acc777b04aa
Author: default <nobody@localhost>
Date:   Thu,  7 Nov 2024 20:23:07 +0100

Don't proxy our own URLs.

Diffstat:
Mhtml.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/html.c b/html.c @@ -47,7 +47,7 @@ xs_str *make_url(const char *href, const char *proxy) { xs_str *url = NULL; - if (proxy) { + if (proxy && !xs_startswith(href, srv_baseurl)) { xs *p = xs_str_cat(xs_dup(proxy), "/proxy/"); url = xs_replace(href, "https:/" "/", p); }