# HG changeset patch # User Florent Cayré # Date 1334231718 -7200 # Node ID e538ad6f9b99f3b73c4413ade2949b7284d9ac6e # Parent 062c9c7fe502a8336302e69f026d0a6cfa7feec2 [static web] fix fckeditor static files delivery: remove leading subpath and url parameters from computed file path diff -r 062c9c7fe502 -r e538ad6f9b99 web/views/staticcontrollers.py --- a/web/views/staticcontrollers.py Wed Apr 11 16:47:30 2012 +0200 +++ b/web/views/staticcontrollers.py Thu Apr 12 13:55:18 2012 +0200 @@ -207,6 +207,9 @@ else: uiprops = config.uiprops relpath = self.relpath + if relpath.startswith('fckeditor/'): + relpath = relpath[len('fckeditor/'):] + relpath = relpath.split('?', 1)[0] return self.static_file(osp.join(uiprops['FCKEDITOR_PATH'], relpath))