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

Paul Kocialkowski contact at paulk.fr
Thu Mar 9 09:27:03 UTC 2017


Le mercredi 08 mars 2017 à 23:49 +0100, Wolfgang Wiedmeyer a écrit :
> Signed-off-by: Wolfgang Wiedmeyer <wolfgit at wiedmeyer.de>

Acked-by: Paul Kocialkowski <contact at paulk.fr>

Thanks!

> ---
>  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;
>  
-- 
Paul Kocialkowski, developer of free digital technology at the lower levels

Website: https://www.paulk.fr/
Coding blog: https://code.paulk.fr/
Git repositories: https://git.paulk.fr/ https://git.code.paulk.fr/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part
URL: <http://lists.osuosl.org/pipermail/replicant/attachments/20170309/8c47bf71/attachment.asc>


More information about the Replicant mailing list