Merge branch 'master' of github.com:drakeapps/dump1090

This commit is contained in:
James Wilson 2017-02-22 12:18:05 -06:00
commit 9621cadbd3
25 changed files with 2091 additions and 613 deletions

View file

@ -1623,7 +1623,7 @@ function getFlightAwareModeSLink(code, ident, linkText) {
function getFlightAwarePhotoLink(registration) {
if (registration !== null && registration !== "") {
return "<a target=\"_blank\" href=\"https://flightaware.com/photos/aircraft/" + registration.trim() + "\">See Aircraft Photos</a>";
return "<a target=\"_blank\" href=\"https://flightaware.com/photos/aircraft/" + registration.replace(/[^0-9a-z]/ig,'') + "\">See Aircraft Photos</a>";
}
return "";