page: fix variable dependencies in error headers
[minimedit.git] / article.inc.php
index d42e49823c96b2536613c806f5399194b7b6c414..ea958fadd171a9a87de4e645f5d78d82a8c3a116 100644 (file)
@@ -35,7 +35,7 @@ class ArchiveArticle
                        }
 
                        @list ($this->preface, $this->title, $this->body) =
-                               preg_split('{<h2>(.*?)</h2>\s*}', $this->raw, 2, PREG_SPLIT_DELIM_CAPTURE);
+                               preg_split('{<h2>(.*?)</h2>\s*}s', $this->raw, 2, PREG_SPLIT_DELIM_CAPTURE);
                }
        }