admin page: Fix validateFirmwareFilename() for underscore in ath79 filenames (#161)

This commit is contained in:
Phil Crump 2021-11-04 20:32:04 +00:00 committed by GitHub
parent 1fd909b18d
commit 837a3c602c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -9,3 +9,4 @@ Eric Satterlee - KG6WXC <kg6wxc@gmail.com>
Ray Suelzer - KK6RAY <rsuelzer@gmail.com> Ray Suelzer - KK6RAY <rsuelzer@gmail.com>
Steve Lewis - AB7PA <ab7pa.radio@gmail.com> Steve Lewis - AB7PA <ab7pa.radio@gmail.com>
Tim Wilkinson - KN6PLV <tim.j.wilkinson@gmail.com> Tim Wilkinson - KN6PLV <tim.j.wilkinson@gmail.com>
Phil Crump - M0DNY <phil@philcrump.co.uk>

View File

@ -634,7 +634,7 @@ print <<EOF;
searchstring= ".*wbs" + hwtype + "-sysupgrade.bin$\"; searchstring= ".*wbs" + hwtype + "-sysupgrade.bin$\";
efn = "aredn-$fw_version-$mfgprefix${hardwaretypev}-sysupgrade.bin"; efn = "aredn-$fw_version-$mfgprefix${hardwaretypev}-sysupgrade.bin";
} else { } else {
searchstring= ".*-" + hwtype + "-sysupgrade.bin$\"; searchstring= ".*(-|_)" + hwtype + "-sysupgrade.bin$\";
efn = "aredn-$fw_version-$mfgprefix-${hardwaretypev}-sysupgrade.bin"; efn = "aredn-$fw_version-$mfgprefix-${hardwaretypev}-sysupgrade.bin";
} }
} else { } else {