Fix typo in PL/Perl Safe.pm initialization that prevented the proper
authorNeil Conway <[email protected]>
Mon, 23 May 2005 02:02:52 +0000 (02:02 +0000)
committerNeil Conway <[email protected]>
Mon, 23 May 2005 02:02:52 +0000 (02:02 +0000)
sharing of %_SHARED. From Andrew Dunstan.

src/pl/plperl/plperl.c

index 10312149920d7609c830cf6ea33eedcb3fa98211..11813d8d573c9cc452bc9ec401ff22cef1ecb113 100644 (file)
@@ -226,7 +226,7 @@ plperl_safe_init(void)
        "$PLContainer->permit_only(':default');"
        "$PLContainer->permit(qw[:base_math !:base_io sort time]);"
        "$PLContainer->share(qw[&elog &spi_exec_query &DEBUG &LOG "
-    "&INFO &NOTICE &WARNING &ERROR %SHARED ]);"
+    "&INFO &NOTICE &WARNING &ERROR %_SHARED ]);"
        "sub ::mksafefunc { return $PLContainer->reval(qq[sub { $_[0] $_[1]}]); }"
                           ;