[wellwell-devel] [wellwell] Avoid problems with slashes in wishlist names.

Stefan Hornburg wellwell-devel at rt.icdevgroup.org
Wed Jun 9 11:22:12 UTC 2010


commit 627b538bc82258247775860856c7c452c5f41aff
Author: Stefan Hornburg (Racke) <racke at linuxia.de>
Date:   Wed Jun 9 13:21:44 2010 +0200

    Avoid problems with slashes in wishlist names.

 plugins/wishlists/code/wishlists.sub |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/wishlists/code/wishlists.sub b/plugins/wishlists/code/wishlists.sub
index 34de6e6..4290063 100644
--- a/plugins/wishlists/code/wishlists.sub
+++ b/plugins/wishlists/code/wishlists.sub
@@ -1,7 +1,7 @@
 Sub wishlists <<EOS
 sub {
 	my $page = shift;
-	my ($name, @args) = split(/\//, $page);
+	my ($name, @args) = split(/\//, $page, 3);
 	my ($wishlist_code, $wishlist_name, $wishlist_type);
 
 	unless ($Session->{logged_in}) {



More information about the wellwell-devel mailing list