Issue 16: Freak Echo Hacks of cloaked targets don't upload
Status:  New
Owner: ----
Reported by calvin.k...@gmail.com, Sep 10, 2010
What steps will reproduce the problem?
1. Have a hacker with echo hack do a freak hack of a cloaked target.

What is the expected output? What do you see instead?
The hack should be able to be uploaded, but does not actually upload.


What version of the product are you using? On what operating system?
1.6.2, Windows Vista + FireFox 3.6.9

Please provide any additional information below.
The bug is in getPosition().  If it is able to get the cluster, it assumes the data will be in childNode[0], but in the case of a freak echo hack where the target is cloaked, it is in childNode[2].  The following code change to getPosition() will fix the issue.

function getPosition(posCell) {
  var len = posCell.childNodes.length;
  var result = {sector: null, coords: null};
  result.cluster = posCell.childNodes[len - 1].textContent;
  if (len > 1) {
    if (posCell.childNodes[0].nodeValue)
      prepareSector(result, posCell.childNodes[0].nodeValue);
    else {
      prepareSector(result, posCell.childNodes[2].nodeValue);
      result.coords = "[?,?]";
    }
  }
  return result;
}