diff --git a/codepot/src/codepot/views/code_file.php b/codepot/src/codepot/views/code_file.php index e3c05e09..2821b2dc 100644 --- a/codepot/src/codepot/views/code_file.php +++ b/codepot/src/codepot/views/code_file.php @@ -11,12 +11,15 @@ $is_special_stream = FALSE; if (array_key_exists('properties', $file) && count($file['properties']) > 0) { + $octet_stream = TRUE; foreach ($file['properties'] as $pn => $pv) { if ($pn == 'svn:mime-type') { if ($pv == 'application/octet-stream') { + $octet_stream = TRUE; + $lower_fileext = strtolower($fileext); if (in_array ($lower_fileext, array ('png', 'jpg', 'jpeg', 'gif', 'tif', 'bmp', 'ico'))) { @@ -58,6 +61,7 @@ } } } + if ($octet_stream) $is_special_stream = TRUE; } ?> @@ -904,12 +908,15 @@ if ($login['settings'] != NULL && print ''; - print '