Ticket #6813: press-this-media-handling-6-26.diff

File press-this-media-handling-6-26.diff, 357 bytes (added by noel, 5 months ago)

Fix for image uploader that was adding http:// for no reason.

  • includes/media.php

    old new  
    330330        } 
    331331 
    332332        if ( !empty($src) ) { 
    333                 if ( !strpos($src, '://') ) 
    334                         $src = "http://$src"; 
    335333                $alt = @$desc; 
    336334                $html = "<img src='$src' alt='$alt' />"; 
    337335                return $html;