Branch: Tag:

2002-09-11

2002-09-11 15:39:46 by Martin Stjernholm <mast@lysator.liu.se>

Fixed a quoting problem when values with both " and ' are rendered in most
widgets. Quote the content in the <textarea> in Variable.VerifiedText
properly.

Rev: server/etc/modules/Variable.pmod/VerifiedText.pike:1.2
Rev: server/etc/modules/Variable.pmod/module.pmod:1.79

1: - // $Id: module.pmod,v 1.78 2002/06/06 16:06:29 anders Exp $ + // $Id: module.pmod,v 1.79 2002/09/11 15:39:46 mast Exp $      #include <module.h>   #include <roxen.h>
1789:    render+=" "+attr+"=";    if(!has_value(args[attr], "\"")) render+="\""+args[attr]+"\"";    else if(!has_value(args[attr], "'")) render+="'"+args[attr]+"'"; -  else render+="\""+replace(args[attr], "'", "&#39;")+"\""; +  else render+="'"+replace(args[attr], "'", "&#39;")+"'";    }       if(noxml) return render+">";    return render+" />";   }