xss, ckeditor js bug.
This commit is contained in:
parent
dac992548a
commit
85c77ca074
|
@ -110,8 +110,7 @@
|
||||||
<%= link_to image_tag(url_to_avatar(reply.author), :class => "avatar"), user_path(reply.author) %>
|
<%= link_to image_tag(url_to_avatar(reply.author), :class => "avatar"), user_path(reply.author) %>
|
||||||
</td>
|
</td>
|
||||||
<td class="comments">
|
<td class="comments">
|
||||||
<div class="reply_content" ><%=h reply.content.html_safe %></div>
|
<div class="reply_content" ><%=h sanitize(reply.content.html_safe) %></div>
|
||||||
<!-- <div class="wiki">< %=h reply.content.html_safe %></div> -->
|
|
||||||
<p>
|
<p>
|
||||||
<% if reply.attachments.any?%>
|
<% if reply.attachments.any?%>
|
||||||
<% options = {:author => true, :deletable => reply.deleted_attach_able_by?(User.current) } %>
|
<% options = {:author => true, :deletable => reply.deleted_attach_able_by?(User.current) } %>
|
||||||
|
@ -144,6 +143,7 @@
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
jQuery(document).ready(function($) {
|
jQuery(document).ready(function($) {
|
||||||
transpotUrl('#main');
|
transpotUrl('.lz');
|
||||||
|
transpotUrl('.replies');
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
Loading…
Reference in New Issue