You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@perl.apache.org by DH <cr...@yahoo.com> on 2002/07/19 08:55:24 UTC

Apache::Status VERSION 2.03 bugfix (:: doesn't go well in filenames)

in Apache::Status, in subroutine non_b_graph, on line 516, there is

    (my $thing = $r->path_info) =~ s:^/::;
    my $type = "dot";
    my $file = "$dir/$thing.$$.gif";

That doesn't work too well on windows, since you can't have :: in filenames
The fix, I put on line 517, and it is

    $thing =~ s{::}{-}g; # cause some OS's dont' allow :: in filenames

__________________________________________________
Do You Yahoo!?
Yahoo! Autos - Get free new car price quotes
http://autos.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Re: Apache::Status VERSION 2.03 bugfix (:: doesn't go well in filenames)

Posted by Vivek Khera <kh...@kcilink.com>.
>>>>> "c" == crazyinsomniac  <DH> writes:

c> in Apache::Status, in subroutine non_b_graph, on line 516, there is
c>     (my $thing = $r->path_info) =~ s:^/::;
c>     my $type = "dot";
c>     my $file = "$dir/$thing.$$.gif";

c> That doesn't work too well on windows, since you can't have :: in filenames

How exactly does that code insert :: into a file name?

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org