diff --git a/rebuild.php b/rebuild.php
index aa1bf22..9c9a3ff 100644
--- a/rebuild.php
+++ b/rebuild.php
@@ -172,6 +172,7 @@ class CProject {
public $subtag = '';
public $lastupdate = 0;
private $longdesc = '';
+ private $prefix_html = '';
private $images = array();
private $downloads = array();
private $downloads_hashes = array();
@@ -209,17 +210,16 @@ class CProject {
// Filter longdesc
$prefix_html = '';
- $this->longdesc = preg_replace_callback('~Written in ([^\\r\\n]+)~', function($matches) use (&$prefix_html) {
+ $this->longdesc = preg_replace_callback('~\r?\nWritten in ([^\\r\\n]+)~ms', function($matches) use (&$prefix_html) {
$prefix_html .= (
''.
(SHIELDS_PREFIX ? mkshield('build', 'success', 'brightgreen').' ' : '').
mkshield('written in', $matches[1], 'blue').
- '
'.
''
);
return '';
}, $this->longdesc);
- $this->longdesc = $prefix_html.$this->longdesc;
+ $this->prefix_html = $prefix_html;
continue;
}
@@ -314,6 +314,10 @@ class CProject {
=$this->prefix_html?>
+ + =hesc(strtoupper(ARTICLE_HEADER))?>=text2html($this->longdesc)?>