Skip to content
Snippets Groups Projects
Commit f65af002 authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Fix parsing of URLs with a slash in them.

The changes for Ghost support broke URL parsing.
parent 75b19e1e
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #3474 passed
......@@ -875,10 +875,12 @@ void parse_url(char *url, struct bbslist *bbs, int dflt_conn_type, int force_def
else
p2 = p1;
}
p3=strrchr(p1,'/');
if(p3!=NULL) {
*p3=0;
SAFECOPY(bbs->ghost_program,p3+1);
if (bbs->conn_type == CONN_TYPE_MBBS_GHOST) {
p3=strrchr(p1,'/');
if(p3!=NULL) {
*p3=0;
SAFECOPY(bbs->ghost_program,p3+1);
}
}
SAFECOPY(bbs->name,p1);
p2=strrchr(p2,':');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment