--- loncom/interface/londocs.pm 2007/05/22 00:38:25 1.273 +++ loncom/interface/londocs.pm 2007/06/11 17:13:30 1.274 @@ -1,7 +1,7 @@ # The LearningOnline Network # Documents # -# $Id: londocs.pm,v 1.273 2007/05/22 00:38:25 albertel Exp $ +# $Id: londocs.pm,v 1.274 2007/06/11 17:13:30 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1586,11 +1586,16 @@ sub ask_for_embedded_content { foreach my $embed_file (keys(%{$allfiles})) { $upload_output .= &Apache::loncommon::start_data_table_row(). ''.$embed_file.''; - if ($args->{'error_on_invalid_names'} + if ($args->{'ignore_remote_references'} + && $embed_file =~ m{^\w+://}) { + $upload_output.=''.&mt("URL points to other server.").''; + } elsif ($args->{'error_on_invalid_names'} && $embed_file ne &Apache::lonnet::clean_filename($embed_file,{'keep_path' => 1,})) { $upload_output.=''.&mt("Invalid characters").''; + } else { + $upload_output .=' ';