mirror of
https://github.com/webmin/webmin.git
synced 2025-07-21 23:40:34 +00:00
20 lines
367 B
Perl
Executable File
20 lines
367 B
Perl
Executable File
#!/usr/local/bin/perl
|
|
|
|
require './filemin-lib.pl';
|
|
&ReadParse();
|
|
|
|
get_paths();
|
|
|
|
open(my $fh, ">", &get_paste_buffer_file()) or die "Error: $!";
|
|
print $fh "cut\n";
|
|
print $fh "$path\n";
|
|
#$info = "Copied ".scalar(@list)." files to buffer";
|
|
|
|
foreach $name (split(/\0/, $in{'name'})) {
|
|
print $fh "$name\n";
|
|
}
|
|
|
|
close($fh);
|
|
|
|
&redirect("index.cgi?path=".&urlize($path));
|