Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist
View gist:d2b873845d5a49627f8e
1 2 3 4 5 6 7 8 9 10 11 12 13
diff --git a/django/contrib/staticfiles/finders.py b/django/contrib/staticfiles/finders.py
index ca0a248..14c1bc2 100644
--- a/django/contrib/staticfiles/finders.py
+++ b/django/contrib/staticfiles/finders.py
@@ -79,7 +79,7 @@ class FileSystemFinder(BaseFinder):
absolute path (or ``None`` if no match).
"""
if prefix:
- prefix = '%s/' % prefix
+ prefix = '%s%s' % (prefix, os.sep)
if not path.startswith(prefix):
return None
path = path[len(prefix):]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.