Branch: Tag:

2015-10-21

2015-10-21 13:11:59 by Martin Karlgren <marty@roxen.com>

Static Resource: Don't attempt to stat paths with a leading double slash.

In URL contexts, a leading double slash means protocol-relative link.

49:    string tag_name = p->tag_name();    string attr_name = process_tags[tag_name];    string link = args[attr_name]; -  if(link && sizeof (link) && link[0] == '/') { +  if(link && has_prefix (link, "/") && !has_prefix (link, "//")) {    array(int)|Stdio.Stat st =    id->conf->try_stat_file(link, id);