Re: [mlmmj] Mlmmj webarchiver, patch, working confirmed
Geert Stappers <[email protected]> Fri, 01 Feb 2019 09:29:36 +0000
| Newsgroups | org.mlmmj.mlmmj |
|---|---|
| Message-ID | <[email protected]> |
On Thu, Nov 15, 2018 at 06:14:44PM -0500, Fabian Aldo Santiago wrote: > On 2018-11-15 13:47, Fabian Aldo Santiago wrote: > > On 2018-11-15 13:35, A. Schulze wrote: > > > Am 15.11.18 um 16:28 schrieb [email protected]: > > > > https://git.cryptomilk.org/projects/mlmmj-webarchiver.git/ > > > > And I???ve gotten it mostly working fine except the search link > > > > when clicked presents a blank page. > > > > I nginx with php-fpm to serve the site. The nginx error log > > > > complains about an unexpected ???&??? somewhere around line 34 > > > > of the search.php file. > > > > > > I've created a package for my installations. And - surprise - I wrote > > > a patch years ago that looks similar to your problem. > > > > > > --- mlmmj-webarchiver.orig/mlmmj-webarchiver/search.php.newlist > > > +++ mlmmj-webarchiver/mlmmj-webarchiver/search.php.newlist > > > @@ -31,13 +31,13 @@ > > > $html=array(); > > > $count=0; > > > $maxresults=##MAX_RESULTS##; > > > - exec("find -type f -name '0*.html' | xargs egrep -roi > > > '$words' | perl -pe 's/:.*//' | sort | uniq",&$output); > > > + exec("find -type f -name '0*.html' | xargs egrep -roi > > > '$words' | perl -pe 's/:.*//' | sort | uniq",$output); > > > while(isset($output[$count]) && $count<$maxresults) > > > { > > > $file=$output[$count++]; > > > $content=file_get_contents($file); > > > $matches=array(); > > > - if (preg_match('/<em>Subject<\/em>: > > > ([^<]*)<\/li>[\S\s]+From<\/em>: ([^<]*)<\/li>[\S\s]+Date<\/em>: > > > ([^<]*)<\/li>/',$content,&$matches)) > > > + if (preg_match('/<em>Subject<\/em>: > > > ([^<]*)<\/li>[\S\s]+From<\/em>: ([^<]*)<\/li>[\S\s]+Date<\/em>: > > > ([^<]*)<\/li>/',$content,$matches)) > > > { > > > $html[]="<li><a > > > href='$file'>$matches[1]</a>, $matches[2], $matches[3]</li>"; > > > } > > > > > > > Has anyone seen this? > > > obviously, because I wrote and forgot that patch :-) > > > > > > > that's awesome! Thank you very much. I'll give this a whirl. > > worked fine. thank you. > Who is in contact with upstream of mlmmj-webarchiver? Groeten Geert Stappers -- Leven en laten leven