changeset 847:330db23d4a44

server (blog): call fixXHTMLLinks on XHTML content
author souliane <souliane@mailoo.org>
date Fri, 15 Jan 2016 12:30:21 +0100
parents c1907a460f6a
children 7dafa5ee809a
files src/server/blog.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/server/blog.py	Fri Jan 15 15:42:37 2016 +0100
+++ b/src/server/blog.py	Fri Jan 15 12:30:21 2016 +0100
@@ -19,7 +19,7 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 from sat.core.i18n import _, D_
-from sat_frontends.tools.strings import addURLToText
+from sat_frontends.tools.strings import addURLToText, fixXHTMLLinks
 from sat.core.log import getLogger
 log = getLogger(__name__)
 from sat.tools import common
@@ -609,7 +609,7 @@
 
     def getText(self, entry, key):
         try:
-            return entry['{}_xhtml'.format(key)]
+            return fixXHTMLLinks(entry['{}_xhtml'.format(key)])
         except KeyError:
             try:
                 processor = addURLToText if key.startswith('content') else sanitizeHtml