@@ -774,38 +774,37 @@ def default_urlconf(request):
774774 <h2>Traceback <span class="commands">{% if not is_email %}<a href="#" onclick="return switchPastebinFriendly(this);">
775775 Switch to copy-and-paste view</a></span>{% endif %}
776776 </h2>
777- {% autoescape off %}
778777 <div id="browserTraceback">
779778 <ul class="traceback">
780779 {% for frame in frames %}
781780 {% ifchanged frame.exc_cause %}{% if frame.exc_cause %}
782781 <li><h3>
783782 {% if frame.exc_cause_explicit %}
784- The above exception ({{ frame.exc_cause }}) was the direct cause of the following exception:
783+ The above exception ({{ frame.exc_cause|force_escape }}) was the direct cause of the following exception:
785784 {% else %}
786- During handling of the above exception ({{ frame.exc_cause }}), another exception occurred:
785+ During handling of the above exception ({{ frame.exc_cause|force_escape }}), another exception occurred:
787786 {% endif %}
788787 </h3></li>
789788 {% endif %}{% endifchanged %}
790789 <li class="frame {{ frame.type }}">
791- <code>{{ frame.filename|escape }}</code> in <code>{{ frame.function|escape }}</code>
790+ <code>{{ frame.filename }}</code> in <code>{{ frame.function }}</code>
792791
793792 {% if frame.context_line %}
794793 <div class="context" id="c{{ frame.id }}">
795794 {% if frame.pre_context and not is_email %}
796795 <ol start="{{ frame.pre_context_lineno }}" class="pre-context" id="pre{{ frame.id }}">
797796 {% for line in frame.pre_context %}
798- <li onclick="toggle('pre{{ frame.id }}', 'post{{ frame.id }}')"><pre>{{ line|escape }}</pre></li>
797+ <li onclick="toggle('pre{{ frame.id }}', 'post{{ frame.id }}')"><pre>{{ line }}</pre></li>
799798 {% endfor %}
800799 </ol>
801800 {% endif %}
802801 <ol start="{{ frame.lineno }}" class="context-line">
803802 <li onclick="toggle('pre{{ frame.id }}', 'post{{ frame.id }}')"><pre>
804- """ """{{ frame.context_line|escape }}</pre>{% if not is_email %} <span>...</span>{% endif %}</li></ol>
803+ """ """{{ frame.context_line }}</pre>{% if not is_email %} <span>...</span>{% endif %}</li></ol>
805804 {% if frame.post_context and not is_email %}
806805 <ol start='{{ frame.lineno|add:"1" }}' class="post-context" id="post{{ frame.id }}">
807806 {% for line in frame.post_context %}
808- <li onclick="toggle('pre{{ frame.id }}', 'post{{ frame.id }}')"><pre>{{ line|escape }}</pre></li>
807+ <li onclick="toggle('pre{{ frame.id }}', 'post{{ frame.id }}')"><pre>{{ line }}</pre></li>
809808 {% endfor %}
810809 </ol>
811810 {% endif %}
@@ -830,7 +829,7 @@ def default_urlconf(request):
830829 <tbody>
831830 {% for var in frame.vars|dictsort:0 %}
832831 <tr>
833- <td>{{ var.0|force_escape }}</td>
832+ <td>{{ var.0 }}</td>
834833 <td class="code"><pre>{{ var.1 }}</pre></td>
835834 </tr>
836835 {% endfor %}
@@ -841,7 +840,6 @@ def default_urlconf(request):
841840 {% endfor %}
842841 </ul>
843842 </div>
844- {% endautoescape %}
845843 <form action="http://dpaste.com/" name="pasteform" id="pasteform" method="post">
846844{% if not is_email %}
847845 <div id="pastebinTraceback" class="pastebin">
@@ -887,9 +885,9 @@ def default_urlconf(request):
887885
888886Traceback:{% for frame in frames %}
889887{% ifchanged frame.exc_cause %}{% if frame.exc_cause %}{% if frame.exc_cause_explicit %}
890- The above exception ({{ frame.exc_cause }}) was the direct cause of the following exception:
888+ The above exception ({{ frame.exc_cause|force_escape }}) was the direct cause of the following exception:
891889{% else %}
892- During handling of the above exception ({{ frame.exc_cause }}), another exception occurred:
890+ During handling of the above exception ({{ frame.exc_cause|force_escape }}), another exception occurred:
893891{% endif %}{% endif %}{% endifchanged %}
894892File "{{ frame.filename|escape }}" in {{ frame.function|escape }}
895893{% if frame.context_line %} {{ frame.lineno }}. {{ frame.context_line|escape }}{% endif %}{% endfor %}
0 commit comments