Skip to content

Commit

Permalink
fix typo txt -> text
Browse files Browse the repository at this point in the history
  • Loading branch information
arton committed Apr 5, 2012
1 parent 339c2b3 commit 25d7e9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/UPnP/control/service.rb
Expand Up @@ -407,7 +407,7 @@ def parse_service_state_table(service_state_table)
data_type = Types::MAP[var.at('dataType').text.strip]
default = var.at 'defaultValue'

if default && default.txt then
if default && default.text then
default = default.text.strip
raise Error, "insecure default value #{default}" unless
default =~ VALUE_PATTERN
Expand Down

0 comments on commit 25d7e9c

Please sign in to comment.