rem: var lastEndTag = response.lastIndexOf(" 
add: var lastEndTag = response.lastIndexOf(" 
context: DWREngine._processCometResponse = function(response) {  if (DWREngine._pollCometSize != response.length) {    var firstStartTag = response.indexOf("//@DWR-START@", DWREngine._pollCometSize);    if (firstStartTag == -1) {      // There is no start tag so we ignore the rest      // DWRUtil.debug("Missing //@DWR-START@ Skipping: " + response.substring(DWREngine._pollCometSize));      DWREngine._pollCometSize = response.length;    }    else {      // if (firstStartTag != DWREngine._pollCometSize) {      //   DWRUtil.debug("//@DWR-START@ not at start skipping: " + response.substring(DWREngine._pollCometSize, firstStartTag));      // }      var lastEndTag = response.lastIndexOf("//@DWR-END@");      if (lastEndTag != -1) {        var executeString = response.substring(firstStartTag + 13, lastEndTag);        // DWRUtil.debug(executeString);        eval(executeString);        // Skip the end tag too for next time        DWREngine._pollCometSize = lastEndTag + 11;      }      // else {      //   DWRUtil.debug("Missing //@DWR-END@ Postponing: " + executeString);      // }    }  }}
meta: 266	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/266/e27fca0c979c4f571f91b864afe6733944fcdcc9/engine.js/buggy/java/org/directwebremoting/engine.js