rem: skinParam.referrer = rows.getColumnItem("ACCESSLOG_REFERRER"); skinParam.text = skinParam.referrer.length > 50 ? skinParam.referrer.substring(0, 50) + "..." : skinParam.referrer; 
add: referrer = rows.getColumnItem("ACCESSLOG_REFERRER"); skinParam.referrer = encode(referrer); skinParam.text = encode(referrer.length > 50 ? referrer.substring(0, 50) + "..." : referrer); 
context: function listReferrers_macro() {   var c = getDBConnection("antville");   var dbError = c.getLastError();   if (dbError)      return (getMessage("error","database",dbError));   // we're doing this with direct db access here   // (there's no need to do it with prototypes):   var d = new Date();   d.setDate(d.getDate()-1); // 24 hours ago   var query = "select ACCESSLOG_REFERRER, count(*) as \"COUNT\" from AV_ACCESSLOG " +      "where ACCESSLOG_F_SITE = " + this._id + " and ACCESSLOG_DATE > {ts '" +       d.format("yyyy-MM-dd HH:mm:ss") + "'} group by ACCESSLOG_REFERRER "+      "order by \"COUNT\" desc, ACCESSLOG_REFERRER asc;";   var rows = c.executeRetrieval(query);   var dbError = c.getLastError();   if (dbError)      return (getMessage("error","database",dbError));   var skinParam = new Object();   while (rows.next()) {      skinParam.count = rows.getColumnItem("COUNT");      skinParam.referrer = rows.getColumnItem("ACCESSLOG_REFERRER");      skinParam.text = skinParam.referrer.length > 50 ? skinParam.referrer.substring(0, 50) + "..." : skinParam.referrer;      this.renderSkin("referrerItem", skinParam);   }   rows.release();   return;}
meta: 993	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/993/7e9716c4fa4132451acde1400676158c71240f99/macros.js/buggy/code/Site/macros.js