From fa1883b35e95f9b142c13343bb9401542820deb2 Mon Sep 17 00:00:00 2001 From: Gary Bishop Date: Mon, 4 Feb 2013 15:12:39 -0500 Subject: [PATCH] Do not use statichost with assets retrieved via ajax. Violates same origin. --- tools/EditFileVersions.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/EditFileVersions.py b/tools/EditFileVersions.py index 8f0dde4..ebfed7a 100644 --- a/tools/EditFileVersions.py +++ b/tools/EditFileVersions.py @@ -38,7 +38,10 @@ def insertVersion(m): version += 1 db[fullname] = (version, newhash) - name = ('%s/themeV%d/' % (staticHost, version)) + name + if name.endswith('.json'): + name = ('/themeV%d/' % version) + name + else: + name = ('%s/themeV%d/' % (staticHost, version)) + name return name for fname in args.files: