Fix problem with Windows file links (backslash in JavaScript string)

This commit is contained in:
Thomas Schulz 2013-09-08 18:07:40 +02:00 committed by Fabien Potencier
parent 27cc10c660
commit 5e2ac93f98

View File

@ -5,7 +5,7 @@
{% if collector.controller.class is defined %}
{% set link = collector.controller.file|file_link(collector.controller.line) %}
<span class="sf-toolbar-info-class sf-toolbar-info-with-next-pointer">{{ collector.controller.class|abbr_class }}</span>
<span class="sf-toolbar-info-method" onclick="{% if link %}window.location='{{link}}';window.event.stopPropagation();return false;{% endif %}">
<span class="sf-toolbar-info-method" onclick="{% if link %}window.location='{{link|e('js')}}';window.event.stopPropagation();return false;{% endif %}">
{{ collector.controller.method }}
</span>
{% else %}