1
0
mirror of https://github.com/MailHops/mailhops-plugin.git synced 2025-05-17 06:40:08 -07:00

Added unshift when adding IPs to the array since they are in the wrong order

This commit is contained in:
Andrew Van Tassel 2012-02-22 11:21:58 -07:00
parent 924c73046e
commit 02b6221963
4 changed files with 4 additions and 4 deletions

BIN
._install.rdf Normal file

Binary file not shown.

View File

@ -24,7 +24,7 @@ var mailHops =
showWeather: false,
map: 'goog',
unit: 'mi',
appVersion: 'MailHops Postbox 0.6.5'
appVersion: 'MailHops Postbox 0.6.6'
}
mailHops.init = function()
@ -178,7 +178,7 @@ var regexAllIp = /(1\d{0,2}|2(?:[0-4]\d{0,1}|[6789]|5[0-5]?)?|[3-9]\d?|0)\.(1\d{
if(headXOrigIP){
var ip = headXOrigIP.match(regexAllIp);
if(ip != null && ip.length != 0)
all_ips.push( ip[0] );
all_ips.unshift( ip[0] );
}
//loop through the received headers and parse for IP addresses
if ( headReceived ){
@ -195,7 +195,7 @@ var regexAllIp = /(1\d{0,2}|2(?:[0-4]\d{0,1}|[6789]|5[0-5]?)?|[3-9]\d?|0)\.(1\d{
for( var r=0; r<received_ips.length; r++ ){
//only look at the first IP
if(regexIp.test(received_ips[r]) && all_ips.indexOf(received_ips[r])==-1 && mailHops.testIP(received_ips[r],rline)){
all_ips.push( received_ips[r] );
all_ips.unshift( received_ips[r] );
break;
}
}

View File

@ -7,7 +7,7 @@
<em:id>postbox@mailhops.com</em:id>
<em:type>2</em:type>
<em:name>MailHops</em:name>
<em:version>0.6.5</em:version>
<em:version>0.6.6</em:version>
<em:description>MailHops maps the route an email traveled to get to you. Using GeoIP it also displays distance traveled along with the location (city, state and country) of the sender.</em:description>
<em:iconURL>chrome://mailhops/content/images/mailhops32.png</em:iconURL>
<em:homepageURL>http://mailhops.com</em:homepageURL>

BIN
mailhops-0.6.6-pb.xpi Normal file

Binary file not shown.