From c915f3879c66b27baf4b1524e8352520218d4d57 Mon Sep 17 00:00:00 2001 From: vargenau Date: Sat, 28 Feb 2009 20:03:55 +0000 Subject: [PATCH] Allow <<>> and {{{x}}} at start of line git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@6605 96ab9672-09ca-45d6-a79d-3d69d39ca109 --- lib/BlockParser.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/lib/BlockParser.php b/lib/BlockParser.php index bcbebdf0e..5898d30d1 100644 --- a/lib/BlockParser.php +++ b/lib/BlockParser.php @@ -1042,7 +1042,11 @@ class Block_plugin_wikicreole extends Block_pre function _match (&$input, $m) { $pos = $input->getPos(); - $pi = "postmatch; + $pi = $m->postmatch; + if ($pi[0] == '<') { + return false; + } + $pi = ">\s*$/', $pi)) { if (($line = $input->nextLine()) === false) { $input->setPos($pos); @@ -1128,8 +1132,10 @@ class Block_template_plugin extends Block_pre function _match (&$input, $m) { $pos = $input->getPos(); - // $pi = "postmatch; $pi = $m->postmatch; + if ($pi[0] == '{') { + return false; + } while (!preg_match('/(?nextLine()) === false) { $input->setPos($pos); -- 2.45.0