Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed regexp for methodName validation.

  • Loading branch information...
commit 61241910ef453f45de89fbbecb51212bd7eb829e 1 parent 11db881
@rjray authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/RPC/XML/Parser/XMLLibXML.pm
View
4 lib/RPC/XML/Parser/XMLLibXML.pm
@@ -42,7 +42,7 @@ use base 'RPC::XML::Parser';
use Scalar::Util 'reftype';
use XML::LibXML;
-$VERSION = '1.18';
+$VERSION = '1.19';
$VERSION = eval $VERSION; ## no critic (ProhibitStringyEval)
# This is to identify valid types that don't already have special handling
@@ -290,7 +290,7 @@ sub dom_request
$method_name = $nodes[0]->textContent;
$method_name =~ s/^\s+//;
$method_name =~ s/\s+$//;
- if ($method_name !~ m{^[a-zA-Z0-9.:/]+$})
+ if ($method_name !~ m{^[\w.:/]+$})
{
return qq{methodName value "$method_name" not a valid name};
}
Please sign in to comment.
Something went wrong with that request. Please try again.