Fix substr mistake
Fix substr mistake

Made a silly mistake and overlooked an important difference between javascript substring() and php substr().
Tightened regex check for octal value.
ch1c4um/pfsense,brunostein/pfsense,pfsense/pfsense,NOYB/pfsense,phil-davis/pfsense,jxmx/pfsense,jxmx/pfsense,dennypage/pfsense,phil-davis/pfsense,ptorsten/pfsense,NewEraCracker/pfsense,NOYB/pfsense,ptorsten/pfsense,BlackstarGroup/pfsense,BlackstarGroup/pfsense,NOYB/pfsense,ch1c4um/pfsense,dennypage/pfsense,ch1c4um/pfsense,BlackstarGroup/pfsense,ptorsten/pfsense,jxmx/pfsense,ch1c4um/pfsense,brunostein/pfsense,phil-davis/pfsense,brunostein/pfsense,pfsense/pfsense,NewEraCracker/pfsense,dennypage/pfsense,BlackstarGroup/pfsense,NewEraCracker/pfsense,pfsense/pfsense,NewEraCracker/pfsense,phil-davis/pfsense,pfsense/pfsense,dennypage/pfsense