[interchange] Fix regression on formerly working ActionMaps with hyphen in ActionMap directive,

Stefan Hornburg <[email protected]>
Newsgroups gmane.comp.web.interchange.cvs
Message-ID <[email protected]>
commit 6c81858c858fc23d7930f6435df18f4ffeccc1ff
Author: Stefan Hornburg (Racke) <[email protected]>
Date:   Mon May 31 16:28:38 2010 +0200

    Fix regression on formerly working ActionMaps with hyphen in ActionMap directive,
    caused by commit a9224c0af3554f4b99b7237d36f1be501131e2ad.

 lib/Vend/Config.pm |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/lib/Vend/Config.pm b/lib/Vend/Config.pm
index 8df529a..e39ee09 100644
--- a/lib/Vend/Config.pm
+++ b/lib/Vend/Config.pm
@@ -2173,6 +2173,8 @@ sub parse_action {
 	}
 	my ($name, $sub) = split /\s+/, $value, 2;
 
+	$name =~ s/-/_/g;
+	
 	## Determine if we are in a catalog config, and if 
 	## perl should be global and/or strict
 	my $nostrict;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.