Skip to content

Commit

Permalink
fixed regex pattern for domain_name ("." was not escaped)
Browse files Browse the repository at this point in the history
  • Loading branch information
lieser committed May 22, 2013
1 parent f47de93 commit 94aef05
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
8 changes: 6 additions & 2 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
0.2.2 [2013-05-22]
------------------
- fixed regex pattern for domain_name ("." was not escaped)

0.2.1 [2013-05-22]
------------------
- query method was parsed wrong
- last header field was parsed wrong
- DNS exception now caught

0.2 [2013-05-16]
------------------
0.2 [2013-05-16]
----------------
- check that from header is signed now included
- key record flags are no longer ignored
- Multiple Instances of a header Field are now supported
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ This is an Add-on for Mozilla Thunderbird, that verifies DKIM Signatures accordi
The source code is availabe at https://github.com/lieser/dkim_verifier.
A packed version can be downloaded from https://addons.mozilla.org/addon/dkim-verifier/.

Please report bugs to http://forums.mozillazine.org/viewtopic.php?f=48&t=2704121 or https://github.com/lieser/dkim_verifier.
Please report bugs at http://forums.mozillazine.org/viewtopic.php?f=48&t=2704121 or https://github.com/lieser/dkim_verifier/issues.

Included third-party Libraries
------------------------------
Expand Down
4 changes: 2 additions & 2 deletions chrome/content/dkim.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Verifies the DKIM-Signatures as specified in RFC 6376
* http://tools.ietf.org/html/rfc6376
*
* version: 0.2.1 (22 May 2013)
* version: 0.2.2 (22 May 2013)
*
* Copyright (c) 2013 Philippe Lieser
*
Expand Down Expand Up @@ -349,7 +349,7 @@ var DKIMVerifier = (function() {
// get SDID (plain-text; REQUIRED)
// Pattern for sub-domain as specified in Section 4.1.2 of RFC 5321
var sub_domain = "(?:[A-z0-9](?:[A-z0-9-]*[A-z0-9])?)";
var domain_name = "(?:"+sub_domain+"(?:."+sub_domain+")+)";
var domain_name = "(?:"+sub_domain+"(?:\\."+sub_domain+")+)";
var SDIDTag = DKIMSignatureHeader.match(tag_spec("d",sub_domain+"(?:."+sub_domain+")*"));
if (SDIDTag === null) {
throw new DKIM_SigError(DKIM_STRINGS.DKIM_SIGERROR_MISSING_D);
Expand Down
2 changes: 1 addition & 1 deletion install.rdf
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<em:name>DKIM Verifier</em:name>
<em:description>Verifies the DKIM-Signature of an e-mail.</em:description>

<em:version>0.2.1</em:version>
<em:version>0.2.2</em:version>

<em:creator>Philippe Lieser</em:creator>

Expand Down

0 comments on commit 94aef05

Please sign in to comment.