Closed (fixed)
Project:
GeSHi Filter for syntax highlighting
Version:
5.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
11 Jan 2008 at 04:48 UTC
Updated:
10 Jun 2008 at 23:21 UTC
Jump to comment: Most recent file
Comments
Comment #1
account-deletion-needed commentedOk I nailed down the problem =)
If you use special characters for custom language tags it may mess up the regexp code
because apparently the special characters aren't escaped with a \
For instance the # in [c#] would abruptly end a regexp and cause errors.
Comment #2
soxofaan commentedupdated title
Comment #3
soxofaan commentedExtra validation of custom language tags is needed.
For example, custom language tags should:
Comment #4
soxofaan commentedThis is a first version of a patch that should solve the initial problem from #1.
Custom language tags like [c++] and [c#] should work now.
TODO: better validation of custom language tags (see #3)
Comment #5
soxofaan commentedcommitted patch #4: http://drupal.org/cvs?commit=96150, http://drupal.org/cvs?commit=96151
still todo: better validation of custom tags (see #3)
Comment #6
soxofaan commentedComment #7
soxofaan commentedfixed in HEAD (for Drupal 6) by http://drupal.org/cvs?commit=113423 (also includes SimpleTest test)
Comment #8
soxofaan commentedfixed in DRUPAL-5--2 by http://drupal.org/cvs?commit=118057
Comment #9
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.