Changeset 737


Ignore:
Timestamp:
11/16/08 20:25:41 (3 years ago)
Author:
OlivierRaginel
Message:

Item38: Force sandbox usage for html2twiki

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/KoalaSkin/bin/savemulti

    r189 r737  
    104104      # Added by FredericLuddeni - 11 FEV 2004     
    105105      # Run html to twiki parser !!! 
    106       open(ENTREE, ">/tmp/twikitemp$$.txt"); 
    107       print ENTREE ("$text"); 
    108       close(ENTREE); 
    109       $text = `./html2twiki /tmp/twikitemp$$.txt`; 
    110       unlink("/tmp/twikitemp$$.txt"); 
     106      my $sandbox =  $TWiki::sharedSandbox || $TWiki::sandbox; 
     107      my $filename = $sandbox->normalizeFileName( "/tmp/twikitemp$$.txt" ); 
     108      open ENTREE, "> $filename" or die "Can't write to $filename: $!"; 
     109      print ENTREE $text; 
     110      close ENTREE; 
     111      ($text) = $sandbox->sysCommand(`./html2twiki `.$filename); 
     112      unlink $filename; 
    111113    } 
    112114 
Note: See TracChangeset for help on using the changeset viewer.