s9ymarkup: drops \%

Found a bug? Tell us!!
Post Reply
Jtb
Regular
Posts: 25
Joined: Sun Jan 21, 2007 11:52 pm

s9ymarkup: drops \%

Post by Jtb »

I've got a post with a path like c:\Users\%username%

With enabled s9ymarkup it will be rendered to:
c:\Users%username%

Without it's correctly rendered to:
c:\Users\%username%


The following line in serendipity_event_s9ymarkup.php causes this:

Code: Select all

$text = preg_replace('/([\\\])([*#_|^@%])/', '\2', $text);
No fix yet because I don't want to analyse the regexp ;)
Jens
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: s9ymarkup: drops \%

Post by garvinhicking »

Hi!

I generally suggest to disable the s9ymarkup if you plan to use code examples in your entries. :-)

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply