Skip to content

Commit a1f4511

Browse files
committed
Support non-ASCII prefixes in instance config for finding static files (issue2551022).
1 parent 683bebd commit a1f4511

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

CHANGES.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ Fixed:
6363
multilink. (Joseph Myers)
6464
- issue2550992: avoid errors from invalid Authorization
6565
headers. (Joseph Myers)
66+
- issue2551022: support non-ASCII prefixes in instance config for
67+
finding static files. (C�dric Krier)
6668

6769

6870
2018-07-13 1.6.0

roundup/cgi/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class SysCallError(Exception):
4848
from email.mime.multipart import MIMEMultipart
4949
import roundup.anypy.email_
5050

51-
from roundup.anypy.strings import s2b, b2s, uchr
51+
from roundup.anypy.strings import s2b, b2s, uchr, is_us
5252

5353
def initialiseSecurity(security):
5454
'''Create some Permissions and Roles on the security object
@@ -1511,7 +1511,7 @@ def serve_static_file(self, file):
15111511
prefix = self.instance.config[dir_option]
15121512
if not prefix:
15131513
continue
1514-
if type(prefix) is str:
1514+
if is_us(prefix):
15151515
# prefix can be a string or list depending on
15161516
# option. Make it a list to iterate over.
15171517
prefix = [ prefix ]

0 commit comments

Comments
 (0)