Ticket #5475 (closed defect: invalid)

Opened 3 years ago

Last modified 2 years ago

Path of filename incorrect - breaks MIME detection for syntax highlighting

Reported by: Haw Loeung Assigned to: hvr
Priority: normal Component: GitPlugin
Severity: normal Keywords: syntax highlighting
Cc: h.loeung@users.sourceforge.net 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

trac-gitplugin-fix-pathname.patch (0.5 kB) - added by Haw Loeung on 07/06/09 08:17:21.
applies cleanly against r6157

Change History

07/06/09 08:17:21 changed by Haw Loeung

  • attachment trac-gitplugin-fix-pathname.patch added.

applies cleanly against r6157

03/07/10 16:09:33 changed by hvr

how can I reproduce this problem?

03/17/10 22:36:03 changed by anonymous

  • status changed from new to closed.
  • resolution set to invalid.

Add/Change #5475 (Path of filename incorrect - breaks MIME detection for syntax highlighting)




Change Properties
Action