add cgit_httpscheme() -> http:// or https://
此提交包含在:
11
ui-shared.c
11
ui-shared.c
@ -34,6 +34,17 @@ void cgit_print_error(char *msg)
|
||||
html("</div>\n");
|
||||
}
|
||||
|
||||
char *cgit_httpscheme()
|
||||
{
|
||||
char *https;
|
||||
|
||||
https = getenv("HTTPS");
|
||||
if (https != NULL && strcmp(https, "on") == 0)
|
||||
return "https://";
|
||||
else
|
||||
return "http://";
|
||||
}
|
||||
|
||||
char *cgit_hosturl()
|
||||
{
|
||||
char *host, *port;
|
||||
|
新增問題並參考
封鎖使用者