[coreboot] flashrom source browser

Urja Rannikko urjaman at gmail.com
Mon Jun 8 15:26:22 CEST 2009


On Sat, Jun 6, 2009 at 00:42, Carl-Daniel
Hailfinger<c-d.hailfinger.devel.2006 at gmx.net> wrote:
> Thanks to Patrick Georgi, we now can look at the flashrom source with a
> web browser.
> http://code.coreboot.org/p/flashrom/source/tree/HEAD/trunk
>
There's a problem, i think i included the essential part here too, but
i think that that url will give the full error on you if needed:
http://code.coreboot.org/p/flashrom/source/tree/HEAD/trunk/flashrom.c
=>
"PlufErrorHandlerException making GET request to
/p/flashrom/source/tree/HEAD/trunk/flashrom.c
2 : pathinfo() expects parameter 1 to be string, array given"

call in /srv/www/vhosts/code.coreboot.org-private_data/indefero.git/src/IDF/Views/Source.php,
line 474
args:
Arg  	Name  	Value
0 	$path 	Array ( [fullpath] => trunk/flashrom.c [hash] =>
2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 [type] => blob )
src:
 469.      */
 470.     public static function getMimeType($file)
 471.     {
 472.         $src= Pluf::f('idf_mimetypes_db', '/etc/mime.types');
 473.         $mimes = preg_split("/\015\012|\015|\012/",
file_get_contents($src));
*474.         $info = pathinfo($file);
 475.         if (isset($info['extension'])) {
 476.             foreach ($mimes as $mime) {
 477.                 if ('#' != substr($mime, 0, 1)) {
 478.                     $elts = preg_split('/ |\t/', $mime, -1,
PREG_SPLIT_NO_EMPTY);
 479.                     if (in_array($info['extension'], $elts)) {



-
urjaman




More information about the coreboot mailing list