summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/locale.t11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/locale.t b/lib/locale.t
index b195394196..1dce940abf 100644
--- a/lib/locale.t
+++ b/lib/locale.t
@@ -159,6 +159,14 @@ check_taint $+;
check_taint $1;
check_taint_not $2;
+/(.)/; # untaint $&, $`, $', $+, $1.
+check_taint_not $&, '/(.)/';
+check_taint_not $`;
+check_taint_not $';
+check_taint_not $+;
+check_taint_not $1;
+check_taint_not $2;
+
/(\s)/; # taint $&, $`, $', $+, $1.
check_taint $&;
check_taint $`;
@@ -167,6 +175,9 @@ check_taint $+;
check_taint $1;
check_taint_not $2;
+/(.)/; # untaint $&, $`, $', $+, $1.
+check_taint_not $&, '/(.)/';
+
/(\S)/; # taint $&, $`, $', $+, $1.
check_taint $&;
check_taint $`;