Roxen.git / server / base_server / roxen.pike

version» Context lines:

Roxen.git/server/base_server/roxen.pike:1:   // This file is part of Roxen WebServer.   // Copyright © 1996 - 2004, Roxen IS.   //   // The Roxen WebServer main program.   //   // Per Hedbor, Henrik Grubbström, Pontus Hagland, David Hedbor and others.   // ABS and suicide systems contributed freely by Francesco Chemolli    - constant cvs_version="$Id: roxen.pike,v 1.1017 2009/01/11 16:02:53 mast Exp $"; + constant cvs_version="$Id: roxen.pike,v 1.1018 2009/01/11 18:13:42 jonasw Exp $";      //! @appears roxen   //!   //! The Roxen WebServer main program.      // The argument cache. Used by the image cache.   ArgCache argcache;      // Some headerfiles   #define IN_ROXEN
Roxen.git/server/base_server/roxen.pike:2569:    "unknown. Substituting with ANY")+"\n", what);    return 0; // FAIL   }      string normalize_url(string url)   {    if (!sizeof (url - " " - "\t")) return "";       Standards.URI ui = Standards.URI(url);    ui->fragment = 0; -  if (ui->host == "any" || ui->host == "::") +  if (ui->host == "any" || ui->host == "ANY" || ui->host == "::")    ui->host = "*";    else    // FIXME: Maybe Standards.URI should do this internally?    ui->host = lower_case(Standards.IDNA.zone_to_ascii (ui->host));       string host = ui->host;    string protocol = ui->scheme;    if (!host || !sizeof(host) || !protocols[protocol])    return "";    if (!ui->port)
Roxen.git/server/base_server/roxen.pike:2645:    }    ui->fragment = 0;       if( (int)opts->nobind )    {    report_warning(    LOC_M(61,"Not binding the port %O, disabled in configuration")+"\n",    (string) ui );    return 0;    } -  if (ui->host == "any" || ui->host == "::") +  if (ui->host == "any" || ui->host == "ANY" || ui->host == "::")    ui->host = "*";    else    // FIXME: Maybe Standards.URI should do this internally?    ui->host = lower_case (Standards.IDNA.zone_to_ascii (ui->host));       protocol = ui->scheme;    host = ui->host;    if (!sizeof(host || "") || !protocols[protocol]) {    report_error(LOC_M(19,"Bad URL '%s' for server `%s'")+"\n",    (string) ui, conf->query_name());