4
0
Эх сурвалжийг харах

Merge branch 'dev' of github.com:marienfressinaud/FreshRSS into dev

Marien Fressinaud 12 жил өмнө
parent
commit
d97577c605

+ 1 - 1
app/models/Feed.php

@@ -172,7 +172,7 @@ class Feed extends Model {
 				);
 				);
 			} else {
 			} else {
 				$feed = new SimplePie ();
 				$feed = new SimplePie ();
-				$url = preg_replace ('/&/', '&', $this->url);
+				$url = str_replace ('&', '&', $this->url);
 				if ($this->httpAuth != '') {
 				if ($this->httpAuth != '') {
 					$url = preg_replace ('#((.+)://)(.+)#', '${1}' . $this->httpAuth . '@${3}', $url);
 					$url = preg_replace ('#((.+)://)(.+)#', '${1}' . $this->httpAuth . '@${3}', $url);
 				}
 				}

+ 1 - 1
app/views/entry/bookmark.phtml

@@ -12,4 +12,4 @@ $url = Url::display (array (
 	'params' => Request::params (),
 	'params' => Request::params (),
 ));
 ));
 
 
-echo json_encode (array ('url' => preg_replace ('#&#i', '&', $url)));
+echo json_encode (array ('url' => str_ireplace ('&', '&', $url)));

+ 1 - 1
app/views/entry/read.phtml

@@ -12,4 +12,4 @@ $url = Url::display (array (
 	'params' => Request::params (),
 	'params' => Request::params (),
 ));
 ));
 
 
-echo json_encode (array ('url' => preg_replace ('#&#i', '&', $url)));
+echo json_encode (array ('url' => str_ireplace ('&', '&', $url)));