Commits

Luke Plant committed ea8c30c

Fixed some validation failures

  • Participants
  • Parent commits 25fdbab

Comments (0)

Files changed (2)

File django/apps/validator/templates/validator/validationfailure_detail.html

 	</tr>
 	<tr>
 		<th scope="row">Request</th>
-		<td>{{ object.method }} {{ object.path }} 
-		{% ifequal object.method 'GET' %}<a href="{{ object.path }}">[go]</a>{% endifequal %}
+		<td>{{ object.method }} {{ object.path|escape }} 
+		{% ifequal object.method 'GET' %}<a href="{{ object.path|escape }}">[go]</a>{% endifequal %}
 		</td>
 	</tr>
 	<tr>

File django/apps/validator/templates/validator/validationfailure_list.html

 		{% for failure in object_list %}
 		<tr {% if forloop.counter|divisibleby:"2" %}class="alt"{% endif %}>
 			<td>{{ failure.timestamp|date:"d M Y h:i" }}</td>
-			<td><span class="method">{{ failure.method }}</span> <span class="path">{{ failure.path }}</span></td>
+			<td><span class="method">{{ failure.method }}</span> <span class="path">{{ failure.path|escape }}</span></td>
 			<td><a href="{{failure.id}}/">Details</a></td>
 			<td><input type="checkbox" name="deleteitem{{ failure.id }}" /></td>
 		</tr>