Branch: Tag:

2011-08-30

2011-08-30 12:28:29 by Henrik Grubbström (Grubba) <grubba@grubba.org>

register_url() needs to detect incomplete URLs. Fixes [bug 6037 (#6037)].

Rev: server/base_server/roxen.pike:1.1080

6:   // 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.1079 2011/08/15 14:11:52 grubba Exp $"; + constant cvs_version="$Id: roxen.pike,v 1.1080 2011/08/30 12:28:29 grubba Exp $";      //! @appears roxen   //!
2765:       string display_url = normalize_url (url, 0);    url = normalize_url (url, 1); +  if (url == "") return 1;    ui = Standards.URI (url);       string protocol = ui->scheme;