projects
/
perl-Redis.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
096689e
)
Fix: __is_valid_command() must deal with both upper and lower-case cmds
author
Pedro Melo
<melo@simplicidade.org>
Sat, 7 Aug 2010 11:49:08 +0000
(12:49 +0100)
committer
Pedro Melo
<melo@simplicidade.org>
Sat, 7 Aug 2010 12:26:48 +0000
(13:26 +0100)
Signed-off-by: Pedro Melo <melo@simplicidade.org>
lib/Redis.pm
patch
|
blob
|
history
diff --git
a/lib/Redis.pm
b/lib/Redis.pm
index
4306153
..
3da5f28
100644
(file)
--- a/
lib/Redis.pm
+++ b/
lib/Redis.pm
@@
-128,7
+128,7
@@
sub __is_valid_command {
my ($self, $cmd) = @_;
return unless $self->{is_subscriber};
- return if $cmd =~ /^P?(UN)?SUBSCRIBE$/;
+ return if $cmd =~ /^P?(UN)?SUBSCRIBE$/
i
;
confess("Cannot use command '$cmd' while in SUBSCRIBE mode, ");
}