Modify

Opened 15 years ago

Closed 14 years ago

#5475 closed defect (invalid)

Path of filename incorrect - breaks MIME detection for syntax highlighting

Reported by: Haw Loeung Owned by: Herbert Valerio Riedel
Priority: normal Component: GitPlugin
Severity: normal Keywords: syntax highlighting
Cc: h.loeung@… Trac Release: 0.11

Description

It seems that a forward slash ('/') is being appended to the end of the filename. This breaks syntax highlighting for most files because the MIME detection code uses the file extension to determine the MIME type before checking chunks of code.

I have a work around for this by adding code to strip the trailing forward slash ('/') in the GitRepository->get_node() code.

Attachments (1)

trac-gitplugin-fix-pathname.patch (542 bytes) - added by Haw Loeung 15 years ago.
applies cleanly against r6157

Download all attachments as: .zip

Change History (3)

Changed 15 years ago by Haw Loeung

applies cleanly against r6157

comment:1 Changed 14 years ago by Herbert Valerio Riedel

how can I reproduce this problem?

comment:2 Changed 14 years ago by anonymous

Resolution: invalid
Status: newclosed

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Herbert Valerio Riedel.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.