MCPcopy Index your code
hub / github.com/MapServer/MapServer / msReturnURL

Function msReturnURL

maptemplate.c:4169–4187  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4167}
4168
4169int msReturnURL(mapservObj* ms, char* url, int mode)
4170{
4171 char *tmpurl;
4172
4173 if(url == NULL) {
4174 msSetError(MS_WEBERR, "Empty URL.", "msReturnURL()");
4175 return MS_FAILURE;
4176 }
4177
4178 tmpurl = processLine(ms, url, NULL, mode); /* URL templates can't handle multi-line tags, hence the NULL file pointer */
4179
4180 if(!tmpurl)
4181 return MS_FAILURE;
4182
4183 msRedirect(tmpurl);
4184 free(tmpurl);
4185
4186 return MS_SUCCESS;
4187}
4188
4189/*
4190** Legacy query template parsing where you use headers, footers and such...

Callers 5

writeErrorFunction · 0.85
mainFunction · 0.85
checkWebScaleFunction · 0.85
msWMSFeatureInfoFunction · 0.85

Calls 3

msSetErrorFunction · 0.85
processLineFunction · 0.85
msRedirectFunction · 0.85

Tested by

no test coverage detected