[Bps-public-commit] RT-Extension-CommandByMail branch, master, updated. 2.01-1-gf3869e3
Dustin Graves
dustin at bestpractical.com
Thu Jun 2 14:12:15 EDT 2016
The branch, master has been updated
via f3869e33f735b0b6f656d7ce3511a3efacf084ac (commit)
from fbc862fca9d8792fa2a2c36bbc151869abe91e6c (commit)
Summary of changes:
lib/RT/Extension/CommandByMail.pm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
- Log -----------------------------------------------------------------
commit f3869e33f735b0b6f656d7ce3511a3efacf084ac
Author: Dustin Graves <dustin at bestpractical.com>
Date: Thu Jun 2 18:11:35 2016 +0000
fix unescaped curly braces in regex, which cause a deprecation warning
diff --git a/lib/RT/Extension/CommandByMail.pm b/lib/RT/Extension/CommandByMail.pm
index cf0e04e..cc20218 100644
--- a/lib/RT/Extension/CommandByMail.pm
+++ b/lib/RT/Extension/CommandByMail.pm
@@ -852,8 +852,8 @@ sub _CanonicalizeCommand {
sub _CheckCommand {
my ($cmd, $val) = (lc shift, shift);
- return 1 if $cmd =~ /^(add|del|)customfield{.*}$/i;
- return 1 if $cmd =~ /^transactioncustomfield{.*}$/i;
+ return 1 if $cmd =~ /^(add|del|)customfield\{.*\}$/i;
+ return 1 if $cmd =~ /^transactioncustomfield\{.*\}$/i;
if ( grep $cmd eq lc $_, @REGULAR_ATTRIBUTES, @TIME_ATTRIBUTES, @DATE_ATTRIBUTES ) {
return 1 unless ref $val;
return (0, "Command '$cmd' doesn't support multiple values");
-----------------------------------------------------------------------
More information about the Bps-public-commit
mailing list