Ticket #6998: press-this-parse_url.patch
File press-this-parse_url.patch, 531 bytes (added by , 17 years ago) |
---|
-
press-this.php
104 104 if ( false !== strpos($src, '&') ) 105 105 continue; 106 106 107 $host = parse_url($_GET['u'] , PHP_URL_HOST);107 $host = parse_url($_GET['u']); 108 108 109 109 if (strpos($src, 'http://') === false) { 110 $src = 'http://'.str_replace('//','/', $host .'/'.$src);110 $src = 'http://'.str_replace('//','/', $host['host'].'/'.$src); 111 111 } 112 112 113 113 $sources[] = $src;