Răsfoiți Sursa

Fix bugs in import/export

- EntryDAO.php: add a missing "FreshRSS_EntryDAO::"
- Fix htmlspecialchars in opml export
Marien Fressinaud 11 ani în urmă
părinte
comite
d5d3f6dcfa
2 a modificat fișierele cu 6 adăugiri și 4 ștergeri
  1. 3 1
      app/Models/EntryDAO.php
  2. 3 3
      app/views/helpers/export/opml.phtml

+ 3 - 1
app/Models/EntryDAO.php

@@ -17,7 +17,9 @@ class FreshRSS_EntryDAO extends Minz_ModelPdo {
 	}
 
 	public function addEntry($valuesTmp, $preparedStatement = null) {
-		$stm = $preparedStatement === null ? addEntryPrepare() : $preparedStatement;
+		$stm = $preparedStatement === null ?
+				FreshRSS_EntryDAO::addEntryPrepare() :
+				$preparedStatement;
 
 		$values = array(
 			$valuesTmp['id'],

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

@@ -18,9 +18,9 @@ foreach ($this->categories as $key => $cat) {
 		$opml_array['body'][$key]['@outlines'][] = array(
 			'text' => htmlspecialchars_decode($feed->name()),
 			'type' => 'rss',
-			'xmlUrl' => $feed->url(),
-			'htmlUrl' => $feed->website(),
-			'description' => $feed->description()
+			'xmlUrl' => htmlspecialchars_decode($feed->url()),
+			'htmlUrl' => htmlspecialchars_decode($feed->website()),
+			'description' => htmlspecialchars_decode($feed->description()),
 		);
 	}
 }