diff --git a/django/core/signing.py b/django/core/signing.py
index d7f86f5..c3b2c3e 100644
a
|
b
|
class TimestampSigner(Signer):
|
184 | 184 | |
185 | 185 | def unsign(self, value, max_age=None): |
186 | 186 | """ |
187 | | Retrieve original value and check it wasn't signed longer than |
188 | | max_age before (in seconds). |
189 | | |
| 187 | Retrieve original value and check it wasn't signed more |
| 188 | than max_age seconds ago. |
190 | 189 | """ |
191 | 190 | result = super(TimestampSigner, self).unsign(value) |
192 | 191 | value, timestamp = result.rsplit(self.sep, 1) |
diff --git a/docs/topics/signing.txt b/docs/topics/signing.txt
index d7bccf4..294fa69 100644
a
|
b
|
created within a specified period of time::
|
127 | 127 | |
128 | 128 | .. class:: TimestampSigner(key=None, sep=':', salt=None) |
129 | 129 | |
130 | | .. function:: TimestampSigner.sign(value) |
| 130 | .. method:: TimestampSigner.sign(value) |
131 | 131 | |
132 | 132 | Sign ``value`` and append current timestamp to it. |
133 | 133 | |
134 | | .. function:: TimestampSigner.unsing(value, max_age=None) |
| 134 | .. method:: TimestampSigner.unsign(value, max_age=None) |
135 | 135 | |
136 | | Checks if ``value`` was signed less than ``max_age`` seconds before, otherwise |
137 | | raises ``SignatureExpired`` |
| 136 | Checks if ``value`` wasn't signed more than ``max_age`` seconds ago, |
| 137 | otherwise raises ``SignatureExpired``. |
138 | 138 | |
139 | 139 | Protecting complex data structures |
140 | 140 | ---------------------------------- |
… |
… |
to execute arbitrary commands by exploiting the pickle format.::
|
159 | 159 | |
160 | 160 | .. function:: loads(string, key=None, salt='django.core.signing', max_age=None) |
161 | 161 | |
162 | | Reverse of ``dumps()``, raises ``BadSignature`` if signature fails. Optionaly |
163 | | checks ``max_age`` (in seconds). |
| 162 | Reverse of ``dumps()``, raises ``BadSignature`` if signature fails. |
| 163 | Checks ``max_age`` (in seconds) if given. |