@@ -775,38 +775,37 @@ def default_urlconf(request):
775775 <h2>Traceback <span class="commands">{% if not is_email %}<a href="#" onclick="return switchPastebinFriendly(this);">
776776 Switch to copy-and-paste view</a></span>{% endif %}
777777 </h2>
778- {% autoescape off %}
779778 <div id="browserTraceback">
780779 <ul class="traceback">
781780 {% for frame in frames %}
782781 {% ifchanged frame.exc_cause %}{% if frame.exc_cause %}
783782 <li><h3>
784783 {% if frame.exc_cause_explicit %}
785- The above exception ({{ frame.exc_cause }}) was the direct cause of the following exception:
784+ The above exception ({{ frame.exc_cause|force_escape }}) was the direct cause of the following exception:
786785 {% else %}
787- During handling of the above exception ({{ frame.exc_cause }}), another exception occurred:
786+ During handling of the above exception ({{ frame.exc_cause|force_escape }}), another exception occurred:
788787 {% endif %}
789788 </h3></li>
790789 {% endif %}{% endifchanged %}
791790 <li class="frame {{ frame.type }}">
792- <code>{{ frame.filename|escape }}</code> in <code>{{ frame.function|escape }}</code>
791+ <code>{{ frame.filename }}</code> in <code>{{ frame.function }}</code>
793792
794793 {% if frame.context_line %}
795794 <div class="context" id="c{{ frame.id }}">
796795 {% if frame.pre_context and not is_email %}
797796 <ol start="{{ frame.pre_context_lineno }}" class="pre-context" id="pre{{ frame.id }}">
798797 {% for line in frame.pre_context %}
799- <li onclick="toggle('pre{{ frame.id }}', 'post{{ frame.id }}')"><pre>{{ line|escape }}</pre></li>
798+ <li onclick="toggle('pre{{ frame.id }}', 'post{{ frame.id }}')"><pre>{{ line }}</pre></li>
800799 {% endfor %}
801800 </ol>
802801 {% endif %}
803802 <ol start="{{ frame.lineno }}" class="context-line">
804803 <li onclick="toggle('pre{{ frame.id }}', 'post{{ frame.id }}')"><pre>
805- """ """{{ frame.context_line|escape }}</pre>{% if not is_email %} <span>...</span>{% endif %}</li></ol>
804+ """ """{{ frame.context_line }}</pre>{% if not is_email %} <span>...</span>{% endif %}</li></ol>
806805 {% if frame.post_context and not is_email %}
807806 <ol start='{{ frame.lineno|add:"1" }}' class="post-context" id="post{{ frame.id }}">
808807 {% for line in frame.post_context %}
809- <li onclick="toggle('pre{{ frame.id }}', 'post{{ frame.id }}')"><pre>{{ line|escape }}</pre></li>
808+ <li onclick="toggle('pre{{ frame.id }}', 'post{{ frame.id }}')"><pre>{{ line }}</pre></li>
810809 {% endfor %}
811810 </ol>
812811 {% endif %}
@@ -831,7 +830,7 @@ def default_urlconf(request):
831830 <tbody>
832831 {% for var in frame.vars|dictsort:0 %}
833832 <tr>
834- <td>{{ var.0|force_escape }}</td>
833+ <td>{{ var.0 }}</td>
835834 <td class="code"><pre>{{ var.1 }}</pre></td>
836835 </tr>
837836 {% endfor %}
@@ -842,7 +841,6 @@ def default_urlconf(request):
842841 {% endfor %}
843842 </ul>
844843 </div>
845- {% endautoescape %}
846844 <form action="http://dpaste.com/" name="pasteform" id="pasteform" method="post">
847845{% if not is_email %}
848846 <div id="pastebinTraceback" class="pastebin">
@@ -888,9 +886,9 @@ def default_urlconf(request):
888886
889887Traceback:{% for frame in frames %}
890888{% ifchanged frame.exc_cause %}{% if frame.exc_cause %}{% if frame.exc_cause_explicit %}
891- The above exception ({{ frame.exc_cause }}) was the direct cause of the following exception:
889+ The above exception ({{ frame.exc_cause|force_escape }}) was the direct cause of the following exception:
892890{% else %}
893- During handling of the above exception ({{ frame.exc_cause }}), another exception occurred:
891+ During handling of the above exception ({{ frame.exc_cause|force_escape }}), another exception occurred:
894892{% endif %}{% endif %}{% endifchanged %}
895893File "{{ frame.filename|escape }}" in {{ frame.function|escape }}
896894{% if frame.context_line %} {{ frame.lineno }}. {{ frame.context_line|escape }}{% endif %}{% endfor %}
0 commit comments