| @@ 1373-1378 (lines=6) @@ | ||
| 1370 | $line = substr( $line, 0, strlen( $line ) - 2 ); |
|
| 1371 | /* get propname */ |
|
| 1372 | $cix = $propname = null; |
|
| 1373 | for( $cix=0; $cix < strlen( $line ); $cix++ ) { |
|
| 1374 | if( in_array( $line{$cix}, array( ':', ';' ))) |
|
| 1375 | break; |
|
| 1376 | else |
|
| 1377 | $propname .= $line{$cix}; |
|
| 1378 | } |
|
| 1379 | /* ignore version/prodid properties */ |
|
| 1380 | if( in_array( strtoupper( $propname ), array( 'VERSION', 'PRODID' ))) |
|
| 1381 | continue; |
|
| @@ 6380-6386 (lines=7) @@ | ||
| 6377 | $line = substr( $line, 0, strlen( $line ) - 2 ); |
|
| 6378 | /* get propname, (problem with x-properties, otherwise in previous loop) */ |
|
| 6379 | $cix = $propname = null; |
|
| 6380 | for( $cix=0; $cix < strlen( $line ); $cix++ ) { |
|
| 6381 | if( in_array( $line{$cix}, array( ':', ';' ))) |
|
| 6382 | break; |
|
| 6383 | else { |
|
| 6384 | $propname .= $line{$cix}; |
|
| 6385 | } |
|
| 6386 | } |
|
| 6387 | if(( 'x-' == substr( $propname, 0, 2 )) || ( 'X-' == substr( $propname, 0, 2 ))) { |
|
| 6388 | $propname2 = $propname; |
|
| 6389 | $propname = 'X-'; |
|