[Replicant] [PATCH 2/2] index: Fix Git commit parsing

Wolfgang Wiedmeyer wolfgit at wiedmeyer.de
Wed Mar 8 22:49:11 UTC 2017


Signed-off-by: Wolfgang Wiedmeyer <wolfgit at wiedmeyer.de>
---
 index.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/index.php b/index.php
index 4805a5f..a99aef9 100644
--- a/index.php
+++ b/index.php
@@ -89,14 +89,14 @@ if ($feed->error() || !$feed_init) {
 		if ($branch == null)
 			continue;
 
-		$commits_contents = preg_grep("/<blockquote><p>/", explode("\n", $item->get_content()));
+		$commits_contents = preg_grep("/<blockquote><p dir=\"auto\">/", explode("\n", $item->get_content()));
 		if ($commits_contents == null)
 			continue;
 
 		print("\t\t\t\t\t<li class=\"list-group-item\"><a href=\"".$repo_link."/\">".$repo[1]."</a> (<strong>".$branch[1]."</strong>):<br /><ul>");
 
 		foreach ($commits_contents as $commit_content) {
-			preg_match("/<blockquote><p>(.*)<\/p>/", $commit_content, $commit);
+			preg_match("/<blockquote><p dir=\"auto\">(.*)<\/p>/", $commit_content, $commit);
 			if ($commit == null)
 				continue;
 
-- 
2.11.0



More information about the Replicant mailing list