aboutsummaryrefslogtreecommitdiff
path: root/src/pl/plperl/plperl.c
diff options
context:
space:
mode:
authorAndrew Dunstan <andrew@dunslane.net>2008-01-22 20:17:37 +0000
committerAndrew Dunstan <andrew@dunslane.net>2008-01-22 20:17:37 +0000
commitac11d9dc4b18a7b88c488ec2a75857b691421953 (patch)
treebc0545edacd07f40bd85d51a3fa2afcf54cafc45 /src/pl/plperl/plperl.c
parent6f8f8d2daaf7a46e6ca931dc9fa8cad4b6f7b7dd (diff)
downloadpostgresql-ac11d9dc4b18a7b88c488ec2a75857b691421953.tar.gz
postgresql-ac11d9dc4b18a7b88c488ec2a75857b691421953.zip
Work around for perl 5.10 bug - fix due to perl hacker Simon Cozens.
Diffstat (limited to 'src/pl/plperl/plperl.c')
-rw-r--r--src/pl/plperl/plperl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pl/plperl/plperl.c b/src/pl/plperl/plperl.c
index 70d90b63ff4..4ac957d1caa 100644
--- a/src/pl/plperl/plperl.c
+++ b/src/pl/plperl/plperl.c
@@ -1,7 +1,7 @@
/**********************************************************************
* plperl.c - perl as a procedural language for PostgreSQL
*
- * $PostgreSQL: pgsql/src/pl/plperl/plperl.c,v 1.134 2007/12/01 17:58:42 tgl Exp $
+ * $PostgreSQL: pgsql/src/pl/plperl/plperl.c,v 1.135 2008/01/22 20:17:37 adunstan Exp $
*
**********************************************************************/
@@ -272,8 +272,8 @@ _PG_init(void)
"sub ::mksafefunc {" \
" my $ret = $PLContainer->reval(qq[sub { $_[0] $_[1] }]); " \
" $@ =~ s/\\(eval \\d+\\) //g if $@; return $ret; }" \
- "$PLContainer->permit('require'); $PLContainer->reval('use strict;');" \
- "$PLContainer->deny('require');" \
+ "$PLContainer->permit(qw[require caller]); $PLContainer->reval('use strict;');" \
+ "$PLContainer->deny(qw[require caller]); " \
"sub ::mk_strict_safefunc {" \
" my $ret = $PLContainer->reval(qq[sub { BEGIN { strict->import(); } $_[0] $_[1] }]); " \
" $@ =~ s/\\(eval \\d+\\) //g if $@; return $ret; }"