Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added CSRF Protection to text plugins for embbed plugins (thanks to M…

…anuel Schmidt and kar1m for helping with this)
  • Loading branch information...
commit abf79bbcbb52f2193febe55e44b9d54687127f6f 1 parent d8e011a
@ojii ojii authored
View
9 cms/plugins/text/templates/cms/plugins/text_plugin_change_form.html
@@ -1,7 +1,16 @@
{% extends "admin/cms/page/plugin_change_form.html" %}
+{% load adminmedia %}
{% block fieldsets %}
{% for fieldset in adminform %}
{% include "cms/plugins/text_plugin_fieldset.html" %}
{% endfor %}
+<script type="text/javascript" src="{{ CMS_MEDIA_URL }}js/csrf.js"></script>
+<script type="text/javascript">
+(function ($){
+ $(document).ready(function(){
+ $.fn.cmsPatchCSRF();
+ });
+})(jQuery);
+</script>
{% endblock %}
Please sign in to comment.
Something went wrong with that request. Please try again.