From ca8f63c9219e1356b46340e725fcea9ae9e21355 Mon Sep 17 00:00:00 2001
From: Yoshinori Okuji <yo@nexedi.com>
Date: Wed, 8 Sep 2004 11:55:35 +0000
Subject: [PATCH] The previous fix was wrong. This is correct.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@1518 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5Type/ZopePatch.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/product/ERP5Type/ZopePatch.py b/product/ERP5Type/ZopePatch.py
index e93500bd53..9377b6c8d3 100755
--- a/product/ERP5Type/ZopePatch.py
+++ b/product/ERP5Type/ZopePatch.py
@@ -253,7 +253,7 @@ class_file:%s
         if RESPONSE is not None: self.dav__init(REQUEST, RESPONSE)
         if RESPONSE is not None: self.dav__simpleifhandler(REQUEST, RESPONSE, refresh=1)
         body = REQUEST.get('BODY', '')
-        m = re.match('\s*<dtml-comment>(.*)</dtml-comment>\s*\n', body, re.I | re.S)
+        m = re.match('\s*<dtml-comment>(.*?)</dtml-comment>\s*\n', body, re.I | re.S)
         if m:
             property_src = m.group(1)
             parameters = {}
@@ -273,7 +273,7 @@ class_file:%s
             self.manage_advanced(max_rows, max_cache, cache_time, class_name, class_file)
             self.title = str(title)
             self.connection_id = str(connection_id)
-            body = body[m.end(1):]
+            body = body[m.end():]
         m = re.match('\s*<params>(.*)</params>\s*\n', body, re.I | re.S)
         if m:
             self.arguments_src = m.group(1)
-- 
2.30.9