Changeset 7966

Show
Ignore:
Timestamp:
05/20/08 22:26:20 (6 months ago)
Author:
ryan
Message:

Don't use php 5 only component parameter to parse_url. Props azaozz. see #6998

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-admin/press-this.php

    r7961 r7966  
    105105            continue; 
    106106         
    107         $host = parse_url($_GET['u'], PHP_URL_HOST); 
     107        $host = parse_url($_GET['u']); 
    108108         
    109109        if (strpos($src, 'http://') === false) { 
    110             $src = 'http://'.str_replace('//','/', $host.'/'.$src); 
     110            $src = 'http://'.str_replace('//','/', $host['host'].'/'.$src); 
    111111        } 
    112112