Skip to content

Commit

Permalink
Section edit: corrected pattern 'SEC_EDIT_PATTERN'
Browse files Browse the repository at this point in the history
This fixes broken nested section edit buttons which were causing
invalid HTML code. The pattern has to be 'not greedy'. Fixes #2304.
  • Loading branch information
lpaulsen93 committed Apr 10, 2018
1 parent fcbc613 commit 37c80e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/html.php
Expand Up @@ -9,7 +9,7 @@
if(!defined('DOKU_INC')) die('meh.');
if(!defined('NL')) define('NL',"\n");
if (!defined('SEC_EDIT_PATTERN')) {
define('SEC_EDIT_PATTERN', '#<!-- EDIT({.*}) -->#');
define('SEC_EDIT_PATTERN', '#<!-- EDIT({.*?}) -->#');
}


Expand Down

0 comments on commit 37c80e0

Please sign in to comment.