[interchange-cvs] interchange - heins modified lib/Vend/Dispatch.pm
interchange-cvs at icdevgroup.org
interchange-cvs at icdevgroup.org
Mon Feb 2 15:53:28 EST 2004
User: heins
Date: 2004-02-02 20:53:28 GMT
Modified: lib/Vend Dispatch.pm
Log:
* Allow standard handler for PUT operations. To enable, do:
SpecialPage put_handler some_action
The some_action action (could be a page) will be prepended to
any path sent with the PUT.
Revision Changes Path
1.30 +6 -2 interchange/lib/Vend/Dispatch.pm
rev 1.30, prev_rev 1.29
Index: Dispatch.pm
===================================================================
RCS file: /var/cvs/interchange/lib/Vend/Dispatch.pm,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -r1.29 -r1.30
--- Dispatch.pm 30 Jan 2004 17:35:03 -0000 1.29
+++ Dispatch.pm 2 Feb 2004 20:53:28 -0000 1.30
@@ -1,6 +1,6 @@
# Vend::Dispatch - Handle Interchange page requests
#
-# $Id: Dispatch.pm,v 1.29 2004/01/30 17:35:03 mheins Exp $
+# $Id: Dispatch.pm,v 1.30 2004/02/02 20:53:28 mheins Exp $
#
# Copyright (C) 2002-2003 Interchange Development Group
# Copyright (C) 2002 Mike Heins <mike at perusion.net>
@@ -26,7 +26,7 @@
package Vend::Dispatch;
use vars qw($VERSION);
-$VERSION = substr(q$Revision: 1.29 $, 10);
+$VERSION = substr(q$Revision: 1.30 $, 10);
use POSIX qw(strftime);
use Vend::Util;
@@ -1438,6 +1438,10 @@
if (! $Vend::FinalPath || $Vend::FinalPath =~ m:^/+$:) {
$Vend::FinalPath = find_special_page('catalog');
}
+
+ if($CGI::put_ref and my $act = $Vend::Cfg->{Special}{put_handler} ) {
+ $Vend::FinalPath =~ s:^/*:$act/:;
+ }
$Vend::FinalPath =~ s:^/+::;
$Vend::FinalPath =~ s/(\.html?)$//
More information about the interchange-cvs
mailing list