summaryrefslogtreecommitdiff
path: root/ui_70-shared.c
diff options
context:
space:
mode:
Diffstat (limited to 'ui_70-shared.c')
-rw-r--r--ui_70-shared.c15
1 files changed, 9 insertions, 6 deletions
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 <cgit@lists.zx2c4.com>
+ * 2018 Vincenzo 'KatolaZ' Nicosia <katolaz@freaknet.org>
+ *
+ * Licensed under GNU General Public License v2
+ * (see COPYING for full license text)
+ */
#include <stdio.h>
#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)