projects
/
horde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6c80bc4
)
Wicked: The default T_W regex segfaults PHP on very large code pastings.
author
Ben Klang
<ben@alkaloid.net>
Tue, 18 May 2010 03:27:45 +0000
(23:27 -0400)
committer
Ben Klang
<ben@alkaloid.net>
Tue, 18 May 2010 03:28:11 +0000
(23:28 -0400)
wicked/lib/Text_Wiki/Parse/Default/Code2.php
patch
|
blob
|
history
diff --git
a/wicked/lib/Text_Wiki/Parse/Default/Code2.php
b/wicked/lib/Text_Wiki/Parse/Default/Code2.php
index
f009579
..
530577f
100644
(file)
--- a/
wicked/lib/Text_Wiki/Parse/Default/Code2.php
+++ b/
wicked/lib/Text_Wiki/Parse/Default/Code2.php
@@
-7,4
+7,6
@@
require_once 'Text/Wiki/Parse/Default/Code.php';
*
* @package Wicked
*/
-class Text_Wiki_Parse_Code2 extends Text_Wiki_Parse_Code { }
+class Text_Wiki_Parse_Code2 extends Text_Wiki_Parse_Code {
+ var $regex = ';^<code(\s[^>]*)?>(.*?)\n</code>(\s|$);msi';
+}