git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8503
d7cf8633-e32d-0410-b094-
e92efae38249
}
}
+ // if we get here, we actually want to download... so first verify the
+ // URL scheme (so one can't read local files using file://)
+ if(strncmp(URL, "http://", 7) && strncmp(URL, "ftp://", 6) && strncmp(URL, "https://", 8))
+ {
+ Con_Printf("Curl_Begin(\"%s\")): nasty URL scheme rejected\n", URL);
+ return false;
+ }
+
if(forthismap)
++numdownloads_added;
di = (downloadinfo *) Z_Malloc(sizeof(*di));