diff options
author | David Mitchell <davem@iabyn.com> | 2011-02-22 16:28:20 +0000 |
---|---|---|
committer | David Mitchell <davem@iabyn.com> | 2011-02-22 16:32:33 +0000 |
commit | 0e9be77f0cd6452aaea65088e06f647e82aca5e8 (patch) | |
tree | 3c7c27eb1cef1ad87142b80415541bc5afbf9bd8 /pod/perlunicode.pod | |
parent | ccdda9cbebc935188ca88f492ce8739de41d890a (diff) | |
download | perl-0e9be77f0cd6452aaea65088e06f647e82aca5e8.tar.gz |
make /\p{isUserDefined}/ die on taint
If the string which contains the name of a user-defined character property
function is tainted, then die rather than calling that function.
See [perl #82616].
Diffstat (limited to 'pod/perlunicode.pod')
-rw-r--r-- | pod/perlunicode.pod | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pod/perlunicode.pod b/pod/perlunicode.pod index edb722d97f..97ac89e04d 100644 --- a/pod/perlunicode.pod +++ b/pod/perlunicode.pod @@ -801,6 +801,10 @@ the value of the flag, and one set of values will immutably be in effect for all case-sensitive matches; the other set for all case-insensitive matches. +Note that if the regular expression is tainted, then perl will die rather +than calling the subroutine, where the name of the subroutine is +determined by the tainted data. + The subroutines must return a specially-formatted string, with one or more newline-separated lines. Each line must be one of the following: |