commit/galaxy-central: jgoecks: Fix bug when displaying shared visualizations with single quotes.
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/changeset/954f201a772e/ changeset: 954f201a772e user: jgoecks date: 2011-12-02 20:50:36 summary: Fix bug when displaying shared visualizations with single quotes. affected #: 1 file diff -r 5340450cdab2a7887d8d9e9186ae438d7b2aee93 -r 954f201a772e82039ec80802f9bca78d8903cd8a templates/visualization/display.mako --- a/templates/visualization/display.mako +++ b/templates/visualization/display.mako @@ -94,7 +94,7 @@ view = create_visualization( container_element, "${config.get('title') | h}", "${config.get('vis_id')}", "${config.get('dbkey')}", JSON.parse('${ h.to_json_string( config.get( 'viewport', dict() ) ) }'), - JSON.parse('${ h.to_json_string( config.get('tracks') ) }'), + JSON.parse('${ h.to_json_string( config['tracks'] ).replace("'", "\\'") }'), JSON.parse('${ h.to_json_string( config.get('bookmarks') ) }') ); Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.
participants (1)
-
Bitbucket