blob: 83c3781efc43ba631355709e37704b33fb5b6d77 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
--- w3mir.PL 2005-12-10 20:39:58.000000000 +0100
+++ w3mir.PL 2005-12-11 12:49:26.000000000 +0100
@@ -209,6 +209,8 @@
use URI::URL;
# For flush method
use FileHandle;
+# for determining current working directory
+use Cwd;
eval '
use URI;
@@ -581,7 +583,8 @@
unless ref $rum_url_o;
# Derive a filename from the url, the filename contains no URL-quoting
- my($lf_name) = (url "file:$lf_url")->unix_path;
+ # filename is relative to current working directory
+ my($lf_name) = (url "file:".getcwd()."/$lf_url")->unix_path;
# Make all intermediate directories
&mkdir($lf_name) if $s==0;
@@ -680,9 +683,7 @@
push(@EXTRASTUFF,$w3http::NOUSER)
unless ($do_user);
- # YES, $lf_url is right, w3http::query handles this like an url so
- # the quoting must all be in place.
- my $binfile=$lf_url;
+ my $binfile=$lf_name;
$binfile='-' if $s==1;
$binfile=$nulldevice if $s==2;
|