Branch: Tag:

2013-07-10

2013-07-10 09:42:24 by Anders Johansson <anders@roxen.com>

Fix for location_url() when mountpoint != "/"

375:    }    continue;    } -  return (string)uri + loc[1..]; +  uri->path += loc[1..]; +  return (string)uri;    }    if(candidate_uri) {    report_warning("Warning: Could not find any suitable ports, continuing anyway. "    "Please make sure that your Primary Server URL matches "    "at least one port. Primary Server URL: %O, URLs: %s.\n",    world_url, short_array(urls)); -  return (string)candidate_uri + loc[1..]; +  candidate_uri->path += loc[1..]; +  return (string)candidate_uri;    }    return 0;   }