« Return to the main article
Assuming that the CGI field HTTPS has been added to the form I believe this may work for detecting HTTPS.
sDBPath := @ReplaceSubstring( @Subset ( @DbName; -1 ); " ":"\\"; "+":"/"); sServerPort := @If( Server_Port != "80"; ":" + Server_Port; "" ); sHTTP := "http"+ @If( HTTPS != "OFF"; "s";"") + "://"; "<base href=\"" + sHTTP + Server_Name + sServerPort + "/" + DBPath + "/\" />";
Just a guess though.
regards john z marshall
Assuming that the CGI field HTTPS has been added to the form I believe this may work for detecting HTTPS.
sDBPath := @ReplaceSubstring( @Subset ( @DbName; -1 ); " ":"\\"; "+":"/"); sServerPort := @If( Server_Port != "80"; ":" + Server_Port; "" ); sHTTP := "http"+ @If( HTTPS != "OFF"; "s";"") + "://"; "<base href=\"" + sHTTP + Server_Name + sServerPort + "/" + DBPath + "/\" />";
Just a guess though.
regards john z marshall