Assume UTF-8 for release notes.
authorJan Schneider <jan@horde.org>
Tue, 15 Dec 2009 18:30:57 +0000 (19:30 +0100)
committerJan Schneider <jan@horde.org>
Tue, 15 Dec 2009 18:31:35 +0000 (19:31 +0100)
The new fm api doesn't require html encoding.

framework/Release/lib/Horde/Release.php

index 1232d68..d07efa0 100644 (file)
@@ -375,7 +375,7 @@ class Horde_Release
         }
         if (!$old) {
             include "$directory/RELEASE_NOTES";
-            if (strlen(htmlspecialchars($this->notes['fm']['changes'])) > 600) {
+            if (strlen($this->notes['fm']['changes']) > 600) {
                 print "WARNING: freshmeat release notes are longer than 600 characters!\n";
             }
         }
@@ -548,7 +548,7 @@ class Horde_Release
 
         // Params to add new release on FM
         $version = array('version' => $this->_sourceVersionString,
-                         'changelog' => htmlspecialchars($this->notes['fm']['changes']));
+                         'changelog' => $this->notes['fm']['changes']);
 
         if (is_array($this->notes['fm']['focus'])) {
             $version['tag_list'] = $this->notes['fm']['focus'];
@@ -659,7 +659,7 @@ class Horde_Release
 
         // Building and sending message
         $mail = new Horde_Mime_Mail();
-        $mail->setBody($body, 'iso-8859-1', false);
+        $mail->setBody($body, 'utf-8', false);
         $mail->addHeaders($headers);
         $result = $mail->send(array('type' => $this->_options['mailer']['type'], 'params' => $this->_options['mailer']['params']));
         if (is_a($result, 'PEAR_Error')) {