[Pkg-owncloud-commits] [php-sabre-vobject] 04/30: Use $charset variable when converting

David Prévot taffit at moszumanska.debian.org
Sun Mar 13 00:53:00 UTC 2016


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository php-sabre-vobject.

commit dff3f05fbda5c29a74de5a28ee1b3ae9195c82a9
Author: Jakob Sack <mail at jakobsack.de>
Date:   Sat Feb 6 17:56:32 2016 +0100

    Use $charset variable when converting
    
    Property $propObj['CHARSET'] might not exist!
---
 lib/Parser/MimeDir.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/Parser/MimeDir.php b/lib/Parser/MimeDir.php
index 6a7f931..cc49540 100644
--- a/lib/Parser/MimeDir.php
+++ b/lib/Parser/MimeDir.php
@@ -474,7 +474,7 @@ class MimeDir extends Parser {
                     $property['value'] = mb_convert_encoding($property['value'], 'UTF-8', $charset);
                     break;
                 default :
-                    throw new ParseException('Unsupported CHARSET: ' . $propObj['CHARSET']);
+                    throw new ParseException('Unsupported CHARSET: ' . $charset);
             }
             $propObj->setRawMimeDirValue($property['value']);
         }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-php/php-sabre-vobject.git



More information about the Pkg-owncloud-commits mailing list