--- loncom/interface/portfolio.pm 2006/06/22 15:56:03 1.112
+++ loncom/interface/portfolio.pm 2006/06/22 16:51:00 1.113
@@ -31,7 +31,7 @@ use Apache::lonfeedback;
use Apache::lonlocal;
use Apache::lonnet;
use Apache::longroup;
-use lib '/home/httpd/lib/perl';
+use HTML::Entities;
use LONCAPA;
# receives a file name and path stub from username/userfiles/portfolio/
@@ -40,9 +40,9 @@ sub make_anchor {
my ($url, $filename, $current_path, $current_mode, $field_name,
$continue_select,$group) = @_;
if ($continue_select ne 'true') {$continue_select = 'false'};
- my $anchor = '';
return $anchor;
@@ -63,38 +63,39 @@ sub display_common {
'createdir' => 'Create Subdirectory',
'createdir_label' =>
'Create subdirectory in current directory:');
+ my $escuri = &HTML::Entities::encode($r->uri,'&<>"');
$r->print(<<"TABLE");
TABLE
my @tree = split (/\//,$current_path);
@@ -108,9 +109,9 @@ TABLE
}
$r->print('');
&Apache::lonhtmlcommon::store_recent($namespace,$current_path,$current_path);
- $r->print('