https://bugzilla.novell.com/show_bug.cgi?id=337817
User srinidhi@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=337817#c1
--- Comment #1 from Srinidhi B S 2008-05-24 09:30:15 MDT ---
Created an attachment (id=217970)
--> (https://bugzilla.novell.com/attachment.cgi?id=217970)
Do not allow binary files to be editted or shown in webclient
Attached patch removes the [Show] and [Edit] links in front of tarballs and
other binary files.
Many thanks to darix for his initial help. I found that file[:ext] returns the
file extension along with a "." and the array which we use to compare don't
have a "." with the extensions.
Tested additionally with a .png and a .diff file. [Show] and [Edit] links do
not show up for the PNG file, but they do show up for the patch file. Haven't
tested this patch with any other file extensions.
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.