Forum: Redcloth Bug with multiple "!!!"

Posted by Markus Boelter (Guest)
on 2008-06-13 02:30
(Received via mailing list)
Hi!

I discovered a bug in the latest stable RedCloth release where
multiple "!!!" are not handled correctly. The bug seems related to
line 1118 in redcloth.rb.

Old version:
    next if prop == 'src' and attrv !~ /^http/

New version:
    next if prop == 'src' and attrv =~ %r{^(?!http)\w+:}

Even in the old version, the string "?!?!?" is not processed correctly
and gives only "??" as output. The new version crashed with an error.

Anyone an idea?

Cheers,
   Markus
Posted by Jason Garber (Guest)
on 2008-06-17 00:00
(Received via mailing list)
This is in RedCloth 3.0.4, I take it?
Posted by Markus Boelter (Guest)
on 2008-06-17 00:38
(Received via mailing list)
Hi!

On Jun 16, 2008, at 2:35 PM, Jason Garber wrote:

> This is in RedCloth 3.0.4, I take it?

Yes, it is

Thanks,
  Markus
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.