Forum: Redcloth Bug with multiple "!!!"

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Markus Boelter (Guest)
on 2008-06-13 04: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
Jason G. (Guest)
on 2008-06-17 02:00
(Received via mailing list)
This is in RedCloth 3.0.4, I take it?
Markus Boelter (Guest)
on 2008-06-17 02:38
(Received via mailing list)
Hi!

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

> This is in RedCloth 3.0.4, I take it?

Yes, it is

Thanks,
  Markus
This topic is locked and can not be replied to.