From b77c97e0883d2b200076854c307ea926c3099e70 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Sun, 17 Aug 2014 19:32:30 +0530 Subject: [PATCH] Don't use os.path.join() to concatenate URL parts This could lead to "\" being used on Windows. Although, we won't be supporting Windows, this is a conceptual problem. --- plinth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plinth.py b/plinth.py index c4299a51d..e7ae409bc 100755 --- a/plinth.py +++ b/plinth.py @@ -186,7 +186,7 @@ def configure_django(): ROOT_URLCONF='urls', SESSION_ENGINE='django.contrib.sessions.backends.file', SESSION_FILE_PATH=sessions_directory, - STATIC_URL=os.path.join(cfg.server_dir, 'static/'), + STATIC_URL=cfg.server_dir + '/static/', TEMPLATE_CONTEXT_PROCESSORS=context_processors, TEMPLATE_DIRS=template_directories)