Changeset 1160


Ignore:
Timestamp:
Aug 15, 2021, 4:20:21 PM (12 months ago)
Author:
iritscen
Message:

ValExtLinks: Added some entries to the lists of known file and page suffixes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Validate External Links/validate_external_links.sh

    r1158 r1160  
    6969# These arrays tell the script which suffixes at the ends of URLs represent files and which are pages.
    7070# 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 py rar tga TRMA txt vbs wav wmv xaf xml zip)
    72 declare -a HTTP_TLDS_AND_PAGES=(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)
     71declare -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)
     72declare -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)
    7373
    7474# These arrays tells us which HTTP response codes are OK (good), which are RD (redirections), and which
     
    905905   STR_TYPE=""
    906906   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 ending to 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."
    908908      let SKIP_UNK_SUFFIX+=1
    909909      continue
Note: See TracChangeset for help on using the changeset viewer.