ViewVC Help
View File | Revision Log | View Changeset | Root Listing
root/Oni2/Validate External Links/validate_external_links.sh
(Generate patch)

Comparing Validate External Links/validate_external_links.sh (file contents):
Revision 1184 by iritscen, Sun May 21 22:22:55 2023 UTC vs.
Revision 1189 by iritscen, Sun Apr 21 16:08:13 2024 UTC

# Line 70 | Line 70 | declare -a NS_NAMES=("Media" "Special" "
70   # These arrays tell the script which suffixes at the ends of URLs represent files and which are pages.
71   # This determines whether the script tries to take a screenshot of the URL (when screenshots are
72   # requested).
73 < 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 xlsx xml zip)
74 < 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 > 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 tif TRMA txt vbs wav wmv xaf xcf xlsx xml zip)
74 > declare -a HTTP_TLDS_AND_PAGES=(abstract action ars asp aspx cfm cgi com css de do full htm html htmldem it js jsp net org pgi php php3 phtml pl ru shtml stm uk x)
75  
76   # These arrays tells us which HTTP response codes are OK (good), which are RD (redirections), and which
77   # are NG (no good). Pages that return OK codes will be screenshotted when screenshots are asked for.
78   # Remember to update http_codes.txt if you add a new code.
79 < declare -a OK_CODES=(200 401 405 406 418 501)
79 > declare -a OK_CODES=(200 202 401 405 406 418 501)
80   declare -a RD_CODES=(301 302 303 307 308)
81   declare -a NG_CODES=(000 400 403 404 410 429 500 502 503 504 520 530)
82  

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)