Branch: Tag:

2011-12-05

2011-12-05 13:52:27 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Varible: The input field default value needs to be quoted. Fixes [bug 6131 (#6131)].

Rev: server/etc/modules/Variable.pmod/module.pmod:1.119

1: - // $Id: module.pmod,v 1.118 2011/07/13 16:07:11 grubba Exp $ + // $Id: module.pmod,v 1.119 2011/12/05 13:52:27 grubba Exp $      #include <module.h>   #include <roxen.h>
2124:       args->name=name;    if(value) -  args->value=value; +  args->value = Roxen.html_encode_string(value);    if(!args->size && size)    args->size=(string)size;   
2137:    else render+="'"+replace(args[attr], "'", "&#39;")+"'";    }    +  render = "<tt>" + Roxen.html_encode_string(name) + "</tt><br />\n" + render; +     if(noxml) return render+">";    return render+" />";   }