Displaying 1 result from an estimated 1 matches for "hastag_match".
2006 Aug 28
0
bug / infinite loop
...tch to prevent this. Please apply them and release
something soon because it''s really nasty.
--
http://penso.info/
-------------- next part --------------
--- redcloth.rb.old 2006-08-28 15:13:55.000000000 +0200
+++ redcloth.rb 2006-08-28 15:14:35.000000000 +0200
@@ -980,7 +980,10 @@
HASTAG_MATCH = /(<\/?\w[^\n]*?>)/m
ALLTAG_MATCH = /(<\/?\w[^\n]*?>)|.*?(?=<\/?\w[^\n]*?>|$)/m
- def glyphs_textile( text, level = 0 )
+ def glyphs_textile( text, level = 50 )
+ if level < 0
+ return
+ end
if text !~ HASTAG_MATCH
pgl text
f...