summaryrefslogtreecommitdiff
path: root/toke.c
diff options
context:
space:
mode:
authorGerard Goossen <gerard@ggoossen.net>2009-11-24 12:06:55 +0100
committerJesse Vincent <jesse@bestpractical.com>2009-11-25 14:31:28 -0500
commitae28bb2a75e3c50332b2684a214bf3dcd1bdb937 (patch)
tree991a837a2e3b5942f5b5d8f0714cb4b4fb10284c /toke.c
parente190e9b4a60aee60dfa0e20320d818bc26b18432 (diff)
downloadperl-ae28bb2a75e3c50332b2684a214bf3dcd1bdb937.tar.gz
Also skip spaces after variable if we are within lexical brackets. Fixes #70091: Segmentation fault in hash lookup in regex substitution
Diffstat (limited to 'toke.c')
-rw-r--r--toke.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toke.c b/toke.c
index a4e9471381..f214ddf304 100644
--- a/toke.c
+++ b/toke.c
@@ -5441,7 +5441,7 @@ Perl_yylex(pTHX)
d = s;
{
const char tmp = *s;
- if (PL_lex_state == LEX_NORMAL)
+ if (PL_lex_state == LEX_NORMAL || PL_lex_brackets)
s = SKIPSPACE1(s);
if ((PL_expect != XREF || PL_oldoldbufptr == PL_last_lop)