Changeset 1160 for Validate External Links
- Timestamp:
- Aug 15, 2021, 4:20:21 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Validate External Links/validate_external_links.sh
r1158 r1160 69 69 # These arrays tell the script which suffixes at the ends of URLs represent files and which are pages. 70 70 # This determines whether the script tries to take a screenshot of the URL or just gets its HTTP code. 71 declare -a HTTP_FILES=(3ds 7z avi BINA blend bsl cpp csv dae dll dmg doc east exe fbx first63 flv gamedata gif jpg last32 log m4a mhm mov mp3 mp4 oni ONWC pdf png p y rar tga TRMA txt vbs wav wmv xaf xml zip)72 declare -a HTTP_TLDS_AND_PAGES=(a ction ars asp aspx cfm cgi com css de do full htm html it js jsp net org pgi php php3 phtml pl ru shtml stm uk x)71 declare -a HTTP_FILES=(3ds 7z avi BINA blend bsl cpp csv dae dll dmg doc east exe fbx first63 flv gamedata gif jpg last32 log m4a mhm mov mp3 mp4 oni ONWC pdf png psd py rar tga TRMA txt vbs wav wmv xaf xcf xml zip) 72 declare -a HTTP_TLDS_AND_PAGES=(abstract action ars asp aspx cfm cgi com css de do full htm html it js jsp net org pgi php php3 phtml pl ru shtml stm uk x) 73 73 74 74 # These arrays tells us which HTTP response codes are OK (good), which are RD (redirections), and which … … 905 905 STR_TYPE="" 906 906 if [ $IS_FILE -eq -1 ]; then 907 valPrint trs "Skipping URL '$URL' (found on page '$LOCAL_PAGE_PATH') because I encountered the unknown URL ending '$POST_DOT'. Please add this endingto the appropriate array in this script, HTTP_FILES or HTTP_TLDS_AND_PAGES."907 valPrint trs "Skipping URL '$URL' (found on page '$LOCAL_PAGE_PATH') because I encountered the unknown URL suffix '$POST_DOT'. Please add this suffix to the appropriate array in this script, HTTP_FILES or HTTP_TLDS_AND_PAGES." 908 908 let SKIP_UNK_SUFFIX+=1 909 909 continue
Note:
See TracChangeset
for help on using the changeset viewer.