there is a bug on wget tabs.. if the name of the file in the url have a UPPERCASE Letter.. the accept button is disable and don't accept to proceed...
Uppercase letters is not a problem with html url... but in FTP url can be..
for resolve this bug simply add A-Z to the regex in the original files.. so..
/usr/htdocs/.torrent/wget_download_m.htm
from
- Code: Select all
//check url
function ValidURL(str) {
valid=/^((https?|ftp):\/\/)?((([a-z\d]([a-z\d-]*[a-z\d])*)\.)+[a-z]{2,}|((\d{1,3}\.){3}\d{1,3}))(\:\d+)?(\/[-a-z\d%_\.~\+]*)*(\?[;&a-z\d%_\.~\+=-]*)?(\#[-a-z\d_]*)?$/i.test(str);
return valid;
}
to
- Code: Select all
//check url
function ValidURL(str) {
valid=/^((https?|ftp):\/\/)?((([a-z\d]([a-z\d-]*[a-z\d])*)\.)+[a-z]{2,}|((\d{1,3}\.){3}\d{1,3}))(\:\d+)?(\/[-a-zA-Z\d%_\.~\+]*)*(\?[;&a-z\d%_\.~\+=-]*)?(\#[-a-z\d_]*)?$/i.test(str);
return valid;
}
and /usr/htdocs/global/wget_download_m.xml
from
- Code: Select all
if(preg_match('/^(?:(https?|ftp):\/\/)?((?:(?:[a-z\d](?:[a-z\d-]*[a-z\d])*)\.)+[a-z]{2,}|((?:\d{1,3}\.){3}\d{1,3}))(?:\:\d+)?(?:\/[-a-z\d%_\.~\+]*)*(?:\?[;&a-z\d%_\.~\+=-]*)?(?:\#[-a-z\d_]*)?$/i',$_SESSION['wget']['url'],$match)){//we have a domain name or ip adress!
to
- Code: Select all
if(preg_match('/^(?:(https?|ftp):\/\/)?((?:(?:[a-z\d](?:[a-z\d-]*[a-z\d])*)\.)+[a-z]{2,}|((?:\d{1,3}\.){3}\d{1,3}))(?:\:\d+)?(?:\/[-a-zA-Z\d%_\.~\+]*)*(?:\?[;&a-z\d%_\.~\+=-]*)?(?:\#[-a-z\d_]*)?$/i',$_SESSION['wget']['url'],$match)){//we have a domain name or ip adress!
and NOW ... all goes right...