Re: [viewvc-users] Binary Files open in browser as garbage.
"C. Michael Pilato" <[email protected]>
| Newsgroups | gmane.comp.version-control.cvs.viewcvs.user |
|---|---|
| Organization | CollabNet, Inc. |
| Message-ID | <[email protected]> |
Raghu Kumar C wrote: > Hi, > > How can I disable binary files being displayed as garbage in > browser? Beginning in ViewVC 1.1.2, you should be able to make a small template change to accomplish this. At the top of the templates/file.ezt file, you'll see this: [# ------------------------------------------------------------------------- ] [# CUSTOMIZE ME: To avoid displaying "binary garbage" -- the contents of ] [# files with non-human-readable file formats -- change the value of the ] [# hide_binary_garbage variable below to 1. ] [# ------------------------------------------------------------------------- ] [define hide_binary_garbage]0[end] Simply change that last line to: [define hide_binary_garbage]1[end] and ViewVC should start hiding file content for files it doesn't believe are human-readable (based on their calculated MIME type), and will instead show a link to the "download" view of that file. -- C. Michael Pilato <[email protected]> CollabNet <> www.collab.net <> Distributed Development On Demand ------------------------------------------------------ http://viewvc.tigris.org/ds/viewMessage.do?dsForumId=4255&dsMessageId=2386757 To unsubscribe from this discussion, e-mail: [[email protected]].
signature.asc
(application/pgp-signature, 197 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkqSsYQACgkQokEGqRcG/W4k1wCfSrBg+R74B71DooC7eljAvn+a fw0AnRUMNWuu+BwZej7BWQ/ZFjgRf4YR =PYsL -----END PGP SIGNATURE-----