Skip to content

Commit

Permalink
chore: typos
Browse files Browse the repository at this point in the history
  • Loading branch information
gforcada committed Jan 29, 2023
1 parent b1a27cb commit c95e4e4
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ New features:

Bug fixes:

- Fixes #11: Pseudo CSS-file is not loaded anymore in merged lagacy bundle.
- Fixes #11: Pseudo CSS-file is not loaded anymore in merged legacy bundle.
Now optional JS based auto-refresh support is working again.
[jensens]

Expand Down
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ Refresh interval (in seconds, -1 to disable refresh)
This controls the refresh CSS max-age (see below.)

Use mod_auth_tkt compatible hashing algorithm
Compatibility with other implemenations, but at the cost of using a weaker hashing algorithm.
Compatibility with other implementations, but at the cost of using a weaker hashing algorithm.

Cookie name
Which cookie to use. This must also be set on the ``credentials_cookie_auth`` plugin.
Expand Down Expand Up @@ -214,7 +214,7 @@ Note for developers testing this under Windows XP

- The IIS management console can be located at::

Start -> Control Panel -> Adminstrative Tools -> Internet Information Services
Start -> Control Panel -> Administrative Tools -> Internet Information Services

- The pywin32 installer setup IIS sufficiently for me not to need to follow the *instructions on how to configure Python for IIS*.

Expand Down
2 changes: 1 addition & 1 deletion plone/session/tests/testPAS.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def testCookieLifetimeWithExpirationSet(self):

def testExtraction(self):
session = self.folder.pas.session
# We will preapre a request that is equal in Py2 and Py3
# We will prepare a request that is equal in Py2 and Py3
request_body = base64.encodebytes(b"test string").decode()
self.assertEqual(request_body, "dGVzdCBzdHJpbmc=\n")
request = self.makeRequest(request_body)
Expand Down
6 changes: 3 additions & 3 deletions plone/session/tktauth.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
========================================
This module implements the session cookie format from mod_auth_tkt_. For
compatability with other implementations, pass ``mod_auth_tkt=True`` to the
compatibility with other implementations, pass ``mod_auth_tkt=True`` to the
``createTicket`` and ``validateTicket`` functions. This invokes the MD5_ based
double hashing scheme in the original mod_auth_tkt. If such compatability is
double hashing scheme in the original mod_auth_tkt. If such compatibility is
not required, a more secure HMAC_ SHA-256_ cryptographic hash may be used
(which is the default.)
Expand Down Expand Up @@ -216,7 +216,7 @@ def createTicket(
# pack is used to convert timestamp from an unsigned integer to 4 bytes
# in network byte order.
# Unfortunately, some older versions of Python assume that longs are always
# 32 bits, so we need to trucate the result in case we are on a 64-bit
# 32 bits, so we need to truncate the result in case we are on a 64-bit
# naive system.
data1 = inet_aton(ip)[:4] + pack("!I", timestamp)
data2 = b"\0".join((userid, token_list, user_data))
Expand Down

0 comments on commit c95e4e4

Please sign in to comment.