From d6a76b9b5eea7f7b0406d472f1d8246507b5ecea Mon Sep 17 00:00:00 2001 From: sebastian Date: Thu, 4 Aug 2005 14:17:11 +0000 Subject: [PATCH] bug 1050 --- livesupport/modules/htmlUI/var/ui_handler.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/livesupport/modules/htmlUI/var/ui_handler.class.php b/livesupport/modules/htmlUI/var/ui_handler.class.php index d2ffafb2b..d4745e647 100644 --- a/livesupport/modules/htmlUI/var/ui_handler.class.php +++ b/livesupport/modules/htmlUI/var/ui_handler.class.php @@ -187,7 +187,7 @@ class uiHandler extends uiBase { foreach ($v['id3'] as $name) { ## loop throught list of equivalent id3-tags $key = strtolower($name); if ($ia['comments'][$key][0]) { - $this->_setMdataValue($id, $v['element'], $ia['comments'][$key][0], $langid); + $this->_setMdataValue($id, $v['element'], str_replace("'", "\\'", utf8_encode($ia['comments'][$key][0])), $langid); } } } @@ -258,7 +258,7 @@ class uiHandler extends uiBase { function editMetaData(&$formdata) - { + { include dirname(__FILE__).'/formmask/metadata.inc.php'; $id = $formdata['id']; $curr_langid = $formdata['curr_langid'];