Skip to content

Commit 839694f

Browse files
committed
Use abspath for static dirs
1 parent fe2403f commit 839694f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pywb/apps/static_handler.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,13 @@ def __call__(self, environ, url_str):
3232

3333
full_path = environ.get('pywb.static_dir')
3434
if full_path:
35-
static_path_to_validate = full_path
35+
static_path_to_validate = os.path.abspath(full_path)
3636
full_path = os.path.join(full_path, url)
3737
if not os.path.isfile(full_path):
3838
full_path = None
3939

4040
if not full_path:
41-
static_path_to_validate = self.static_path
41+
static_path_to_validate = os.path.abspath(self.static_path)
4242
full_path = os.path.join(self.static_path, url)
4343

4444
try:

0 commit comments

Comments
 (0)