From 93074e126b27d33979448dc756674a6ee74a179a Mon Sep 17 00:00:00 2001 From: Axel Beckert Date: Sun, 8 Mar 2009 01:14:35 +0000 Subject: [PATCH] Adding two backslashes to a single single and a single double quote inside a regexp to let editors' syntax highlighting not be confused. They don't change anything when being executed. --- blosxom.cgi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/blosxom.cgi b/blosxom.cgi index 5b4ab03..1336e8b 100755 --- a/blosxom.cgi +++ b/blosxom.cgi @@ -2,7 +2,7 @@ # Blosxom # Author: Rael Dornfest (2002-2003), The Blosxom Development Team (2005-2008) -# Version: 2.1.2 ($Id: blosxom.cgi,v 1.92 2009/03/08 01:11:15 xtaran Exp $) +# Version: 2.1.2 ($Id: blosxom.cgi,v 1.93 2009/03/08 01:14:35 xtaran Exp $) # Home/Docs/Licensing: http://blosxom.sourceforge.net/ # Development/Downloads: http://sourceforge.net/projects/blosxom @@ -671,7 +671,7 @@ sub generate { package blosxom; my $template = shift; # Interpolate scalars, namespaced scalars, and hash/hashref scalars - $template =~ s/(\$\w+(?:::\w+)*(?:(?:->)?{(['"]?)[-\w]+\2})?)/"defined $1 ? $1 : ''"/gee; + $template =~ s/(\$\w+(?:::\w+)*(?:(?:->)?{([\'\"]?)[-\w]+\2})?)/"defined $1 ? $1 : ''"/gee; return $template; }; -- 2.39.2