Changeset 8028

Show
Ignore:
Timestamp:
05/31/08 10:51:50 (6 months ago)
Author:
matt
Message:

Don't prepend the host if it's already a full URL.

Files:

Legend:

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

    r8017 r8028  
    9999     
    100100    $sources = array(); 
    101  
    102101    foreach ($matches[1] as $src) { 
    103102        if ( false !== strpos($src, '&') ) 
    104103            continue; 
    105         $src = 'http://'.str_replace('//','/', $host['host'].'/'.$host['path'].'/'.$src); 
     104        if ( !strstr( $src, 'http://' ) ) 
     105            $src = 'http://'.str_replace('//','/', $host['host'].'/'.$host['path'].'/'.$src); 
    106106         
    107107        $sources[] = $src;