diff options
author | Adrian Lang <lang@cosmocode.de> | 2010-02-15 11:13:05 +0100 |
---|---|---|
committer | Adrian Lang <lang@cosmocode.de> | 2010-02-15 11:14:37 +0100 |
commit | 00c13053ac33ff41de9796de647da301a8abcc17 (patch) | |
tree | e25d58e411c8ee37c8952b802df48d595570eb19 | |
parent | 01eab857bc060f72f5a8355cecd5affce6f70a31 (diff) | |
download | rpg-00c13053ac33ff41de9796de647da301a8abcc17.tar.gz rpg-00c13053ac33ff41de9796de647da301a8abcc17.tar.bz2 |
Validate section edit data
-rw-r--r-- | inc/parser/xhtml.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/inc/parser/xhtml.php b/inc/parser/xhtml.php index 3ac8ed35c..b6cc49cba 100644 --- a/inc/parser/xhtml.php +++ b/inc/parser/xhtml.php @@ -63,6 +63,9 @@ class Doku_Renderer_xhtml extends Doku_Renderer { */ protected function finishSectionEdit($end) { list($id, $start, $type, $title) = array_pop($this->sectionedits); + if ($end <= $start) { + return; + } $this->doc .= "<!-- EDIT$id " . strtoupper($type) . ' '; if (!is_null($title)) { $this->doc .= '"' . str_replace('"', '', $title) . '" '; |