From a21c7af69145f31345f86e1e9960cdeef1215e3a Mon Sep 17 00:00:00 2001
From: short <>
Date: Tue, 8 Oct 2002 23:18:41 +0000
Subject: [PATCH] Fixed substitution for multiline articles
---
obsah.php | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/obsah.php b/obsah.php
index f1737c9..1203d72 100644
--- a/obsah.php
+++ b/obsah.php
@@ -47,11 +47,11 @@
. " and month=".$row["month"]
);
while ($article_row=mysql_fetch_array($article_result))
- $contents=ereg_replace("$sep_obsah_contents(".quotemeta($article_row["name"]).")$page_obsah_contents",
+ $contents=ereg_replace("$sep_obsah_contents(".quotemeta($article_row["name"]).")([\n$page_obsah_contents])",
"$sep_obsah_contents"
.""
."\\1"
- ."$page_obsah_contents",$contents);
+ ."\\2",$contents);
mysql_free_result($article_result);
$contents=ereg_replace("http://[^[:space:]$page_obsah_contents$sep_obsah_contents]+",
--
1.8.3.1