Branch: Tag:

2014-08-21

2014-08-21 12:20:51 by Martin Karlgren <marty@roxen.com>

Don't crash on empty src attrs. Fixes [Bug 7243 (#7243)].

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