projects
/
matthijs
/
upstream
/
blosxom.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
fd2b772
)
Adding two backslashes to a single single and a single double quote inside a regexp...
author
Axel Beckert
<xtaran@users.sourceforge.net>
Sun, 8 Mar 2009 01:14:35 +0000
(
01:14
+0000)
committer
Axel Beckert
<xtaran@users.sourceforge.net>
Sun, 8 Mar 2009 01:14:35 +0000
(
01:14
+0000)
blosxom.cgi
patch
|
blob
|
history
diff --git
a/blosxom.cgi
b/blosxom.cgi
index 5b4ab039a6c55e51deeaba0085fba2fa0852566c..1336e8b0a0d0aef4f4350187585945fd055d9fab 100755
(executable)
--- a/
blosxom.cgi
+++ b/
blosxom.cgi
@@
-2,7
+2,7
@@
# Blosxom
# Author: Rael Dornfest (2002-2003), The Blosxom Development Team (2005-2008)
# Blosxom
# Author: Rael Dornfest (2002-2003), The Blosxom Development Team (2005-2008)
-# Version: 2.1.2 ($Id: blosxom.cgi,v 1.9
2 2009/03/08 01:11:1
5 xtaran Exp $)
+# Version: 2.1.2 ($Id: blosxom.cgi,v 1.9
3 2009/03/08 01:14:3
5 xtaran Exp $)
# Home/Docs/Licensing: http://blosxom.sourceforge.net/
# Development/Downloads: http://sourceforge.net/projects/blosxom
# 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
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;
};
return $template;
};