You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by DH <cr...@yahoo.com> on 2002/07/30 14:40:32 UTC

Apache::Status patch, in diff -u format (finally ;)

Index: Status.pm
===================================================================
RCS file: /home/cvspublic/modperl/lib/Apache/Status.pm,v
retrieving revision 1.26
diff -u -r1.26 Status.pm
--- Status.pm	23 May 2002 16:14:56 -0000	1.26
+++ Status.pm	30 Jul 2002 12:39:07 -0000
@@ -514,6 +514,7 @@
     mkdir $dir, 0755 unless -d $dir;
 
     (my $thing = $r->path_info) =~ s:^/::;
+    $thing =~ s{::}{-}g; # cause some OS's dont' allow :: in filenames
     my $type = "dot";
     my $file = "$dir/$thing.$$.gif";
     

__________________________________________________
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com

Re: Apache::Status patch, in diff -u format (finally ;)

Posted by Stas Bekman <st...@stason.org>.
DH wrote:
> Index: Status.pm
> ===================================================================
> RCS file: /home/cvspublic/modperl/lib/Apache/Status.pm,v
> retrieving revision 1.26
> diff -u -r1.26 Status.pm
> --- Status.pm	23 May 2002 16:14:56 -0000	1.26
> +++ Status.pm	30 Jul 2002 12:39:07 -0000
> @@ -514,6 +514,7 @@
>      mkdir $dir, 0755 unless -d $dir;
>  
>      (my $thing = $r->path_info) =~ s:^/::;
> +    $thing =~ s{::}{-}g; # cause some OS's dont' allow :: in filenames
>      my $type = "dot";
>      my $file = "$dir/$thing.$$.gif";

Thanks, committed


__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com