Procházet zdrojové kódy

Manually escape description of articles and pages

Talha Mansoor před 10 roky
rodič
revize
837338bf38
2 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 1 1
      templates/article.html
  2. 1 1
      templates/page.html

+ 1 - 1
templates/article.html

@@ -6,7 +6,7 @@
 
 {% block head_description %}
 {% if article.summary %}
-{{ article.summary|striptags }}
+{{ article.summary|striptags|e }}
 {% endif %}
 {% endblock head_description %}
 

+ 1 - 1
templates/page.html

@@ -6,7 +6,7 @@
 
 {% block head_description %}
 {% if page.summary %}
-{{ page.summary|striptags }}
+{{ page.summary|striptags|e }}
 {% endif %}
 {% endblock head_description %}