Preceding wasn't actually included in testing. :-( Fix typo.

This commit is contained in:
Stuart D. Gathman
2013-07-09 19:22:14 -04:00
parent ed6a7f5454
commit 94c5e093bb
2 changed files with 10 additions and 3 deletions
+1 -1
View File
@@ -174,7 +174,7 @@ def validate_signature_fields(sig):
now = int(time.time()) now = int(time.time())
slop = 36000 # 10H leeway for mailers with inaccurate clocks slop = 36000 # 10H leeway for mailers with inaccurate clocks
t_sign = 0 t_sign = 0
if b't' in sig if b't' in sig:
if re.match(br"\d+$", sig[b't']) is None: if re.match(br"\d+$", sig[b't']) is None:
raise ValidationError( raise ValidationError(
"t= value is not a decimal integer (%s)" % sig[b't']) "t= value is not a decimal integer (%s)" % sig[b't'])
+9 -2
View File
@@ -4,7 +4,7 @@
Summary: Python DKIM library Summary: Python DKIM library
Name: %{pythonbase}-pydkim Name: %{pythonbase}-pydkim
Version: 0.5.4 Version: 0.5.4
Release: 1 Release: 2
Source0: http://hewgill.com/pydkim/pydkim-%{version}.tar.bz2 Source0: http://hewgill.com/pydkim/pydkim-%{version}.tar.bz2
Patch: pydkim.patch Patch: pydkim.patch
License: BSD-like License: BSD-like
@@ -23,6 +23,7 @@ Python DKIM library
%prep %prep
%setup -n pydkim-%{version} %setup -n pydkim-%{version}
%patch -b .sdg
%build %build
%{__python} setup.py build %{__python} setup.py build
@@ -46,7 +47,13 @@ rm -rf $RPM_BUILD_ROOT
#/usr/lib/%{__python}/site-packages/dkim/__main__.pyo #/usr/lib/%{__python}/site-packages/dkim/__main__.pyo
%changelog %changelog
* Sat Apr 21 2012 Stuart Gathman <stuart@bmsi.com> 0.5.3-1 * Tue Jul 9 2013 Stuart Gathman <stuart@gathman.org> 0.5.4-2
- Fix x= with no t= bug
* Tue Jul 9 2013 Stuart Gathman <stuart@gathman.org> 0.5.4-1
- Fix FWS with no NL bug, add test case
* Fri Jan 25 2013 Stuart Gathman <stuart@bmsi.com> 0.5.3-1
- Raise KeyFormatError when public key less than 1024 bits by default - Raise KeyFormatError when public key less than 1024 bits by default
- Fix TAB in FWS bug - Fix TAB in FWS bug