Jump to content

Exploding problem


Utherr12

Recommended Posts

$archive_types = array('gz','bz','zip');				$url_explode = explode('.',$_REQUEST['url']);		$ext = $url_explode[count($url_explode)-1];		if(!in_array($ext, $archive_types)) {			echo $lang['error_badurl'];			echo ' '.$ext;			echo ' '.count($url_explode);			exit(0);		}

the code above returns: "Suspect bad url - unable to determine file name from the url php?id=blogw:Aa_random_page_v2_for_2009 3"The url is fetched from a hidden input with the value http://massou.tk/v2/lib/exe/fetch.php?id=blogw%3Aa_random_page_v2_for_2009&cache=cache&media=blogw:random_page.zipIt has 4 parts.HMMM somehow now it works lol

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...