Diff for /loncom/publisher/loncleanup.pm between versions 1.14 and 1.16

version 1.14, 2011/10/29 19:17:09 version 1.16, 2011/11/14 00:20:31
Line 393  sub handler { Line 393  sub handler {
   
     if ($env{'form.filename'}) {      if ($env{'form.filename'}) {
  $fn=$env{'form.filename'};   $fn=$env{'form.filename'};
  $fn=~s/^https?\:\/\/[^\/]+//;   $fn=~s{^https?\://[^/]+}{};
     } else {      } else {
  $r->log_reason($env{'user.name'}.' at '.$env{'user.domain'}.   $r->log_reason($env{'user.name'}.' at '.$env{'user.domain'}.
        ' unspecified filename for cleanup', $r->filename);          ' unspecified filename for cleanup', $r->filename); 
Line 419  sub handler { Line 419  sub handler {
  return HTTP_NOT_ACCEPTABLE;   return HTTP_NOT_ACCEPTABLE;
     }      }
   
     $fn=~s{^/priv/$LONCAPA::domain_re/$LONCAPA::username_re}{};  
   
     &Apache::loncommon::content_type($r,'text/html');      &Apache::loncommon::content_type($r,'text/html');
     $r->send_http_header;      $r->send_http_header;
   
     # Breadcrumbs      # Breadcrumbs
     my $brcrum = [{'href' => &Apache::loncommon::authorspace(),      my $brcrum = [{'href' => &Apache::loncommon::authorspace($fn),
                    'text' => 'Construction Space'},                     'text' => 'Construction Space'},
                   {'href' => '',                    {'href' => '',
                    'text' => 'Cleanup XML Document'}];                     'text' => 'Cleanup XML Document'}];
   
       $fn=~s{^/priv/$LONCAPA::domain_re/$LONCAPA::username_re}{};
   
     $r->print(&Apache::loncommon::start_page('Cleanup XML Document',      $r->print(&Apache::loncommon::start_page('Cleanup XML Document',
                                              undef,                                               undef,
                                              {'bread_crumbs' => $brcrum,}));                                               {'bread_crumbs' => $brcrum,}));

Removed from v.1.14  
changed lines
  Added in v.1.16


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>