summaryrefslogtreecommitdiff
path: root/inc/parser
diff options
context:
space:
mode:
authorAdrian Lang <lang@cosmocode.de>2010-02-15 11:13:05 +0100
committerAdrian Lang <lang@cosmocode.de>2010-02-15 11:14:37 +0100
commit00c13053ac33ff41de9796de647da301a8abcc17 (patch)
treee25d58e411c8ee37c8952b802df48d595570eb19 /inc/parser
parent01eab857bc060f72f5a8355cecd5affce6f70a31 (diff)
downloadrpg-00c13053ac33ff41de9796de647da301a8abcc17.tar.gz
rpg-00c13053ac33ff41de9796de647da301a8abcc17.tar.bz2
Validate section edit data
Diffstat (limited to 'inc/parser')
-rw-r--r--inc/parser/xhtml.php3
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) . '" ';