From d466dfc252f9896b1d6bdce623067378e04b8e71 Mon Sep 17 00:00:00 2001 From: KatolaZ Date: Sun, 29 Jul 2018 16:33:26 +0100 Subject: added my name to copyright statements -- few tweaks --- ui_70-shared.c | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'ui_70-shared.c') diff --git a/ui_70-shared.c b/ui_70-shared.c index 3262320..a1b98b7 100644 --- a/ui_70-shared.c +++ b/ui_70-shared.c @@ -1,8 +1,11 @@ -/* -* -* Gopher-related functions -* -*/ +/* ui-shared.c: common web output functions + * + * Copyright (C) 2006-2017 cgit Development Team + * 2018 Vincenzo 'KatolaZ' Nicosia + * + * Licensed under GNU General Public License v2 + * (see COPYING for full license text) + */ #include #include "cgit.h" @@ -244,7 +247,7 @@ const char *cgit_rooturl(void) if (ctx.cfg.virtual_root) return ctx.cfg.virtual_root; else - return ctx.cfg.script_name; + return fmtalloc("/%s", ctx.cfg.script_name); } const char *cgit_loginurl(void) -- cgit v1.2.3