git.svenne.dk
/
public
/
dnssec-swede-utility.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6bc1735
)
Fixed tlsa name regex (thanks JP Mens)
author
Pieter Lexis
<pieter.lexis@os3.nl>
Fri, 27 Jan 2012 16:10:11 +0000
(17:10 +0100)
committer
Pieter Lexis
<pieter.lexis@os3.nl>
Fri, 27 Jan 2012 16:10:11 +0000
(17:10 +0100)
* The regex didn't allow the use of dashes(-) in the hostname part of the name string.
swede
patch
|
blob
|
history
diff --git
a/swede
b/swede
index 861211e85b9834b674f487bcd53c2e3d8efd27d5..ee9d76824dae9f14d4148bbd0f4c633d5bc678f7 100755
(executable)
--- a/
swede
+++ b/
swede
@@
-295,7
+295,7
@@
class TLSARecord:
def isNameValid(self):
"""Check if the name if in the correct format"""
- if not re.match('^(_\d{1,5}|\*)\._(tcp|udp|sctp)\.([a-z0-9]*\.){2,}$', self.name):
+ if not re.match('^(_\d{1,5}|\*)\._(tcp|udp|sctp)\.([
-
a-z0-9]*\.){2,}$', self.name):
return False
return True