Skip to content

Commit

Permalink
Do not use statichost with assets retrieved via ajax.
Browse files Browse the repository at this point in the history
Violates same origin.
  • Loading branch information
gbishop committed Feb 4, 2013
1 parent f6ccc16 commit fa1883b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tools/EditFileVersions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit fa1883b

Please sign in to comment.