File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -42,14 +42,19 @@ is_object_unsuspended 'user' 'USER' "$user"
4242is_object_valid ' web' ' DOMAIN' " $domain "
4343is_object_unsuspended ' web' ' DOMAIN' " $domain "
4444
45+ idn_redirect=$( idn2 --quiet $3 )
46+ if [ $? == 0 ]; then
47+ redirect=$idn_redirect ;
48+ fi
49+
4550if [[ " $3 " =~ http://| https:// ]]; then
4651 scheme=1
47- isValidUrl=$( php -r ' $url=$argv[1]; $url=filter_var($url,FILTER_VALIDATE_URL); echo $url;' " $3 " )
52+ isValidUrl=$( php -r ' $url=$argv[1]; $url=filter_var($url,FILTER_VALIDATE_URL); echo $url;' " $redirect " )
4853 if [ -z " $isValidUrl " ]; then
4954 check_result $E_INVALID " Invalid redirect"
5055 fi
5156else
52- isValidUrl=$( php -r ' $url=$argv[1]; $url=filter_var($url,FILTER_VALIDATE_URL); echo $url;' " http://$3 " )
57+ isValidUrl=$( php -r ' $url=$argv[1]; $url=filter_var($url,FILTER_VALIDATE_URL); echo $url;' " http://$redirect " )
5358 if [ -z " $isValidUrl " ]; then
5459 check_result $E_INVALID " Invalid redirect"
5560 fi
You can’t perform that action at this time.
0 commit comments