diff --git a/static/files/js/front.js b/static/files/js/front.js index e6afd5ea..63f2b298 100755 --- a/static/files/js/front.js +++ b/static/files/js/front.js @@ -134,18 +134,23 @@ $(function () { $("#colour").change(function () { - if ($(this).val() !== '') { + var theme = $(this).val(); - var theme_csspath = 'css/style.' + $(this).val() + '.css'; + // Validate theme name is a simple identifier so a tampered