Просмотр исходного кода

Fix OPML category encoding (#4427)

Category name was double-encoded
Alexandre Alapetite 3 лет назад
Родитель
Сommit
e14a72681e
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      app/views/helpers/export/opml.phtml

+ 1 - 1
app/views/helpers/export/opml.phtml

@@ -11,7 +11,7 @@ $opml_array = array(
 
 foreach ($this->categories as $key => $cat) {
 	$opml_array['body'][$key] = array(
-		'text' => $cat->name(),
+		'text' => htmlspecialchars_decode($cat->name(), ENT_QUOTES),
 		'@outlines' => array()
 	);