mirror of
https://github.com/munki/munki.git
synced 2026-04-23 04:59:17 -05:00
MSU.app: Encode update descriptions in UTF-8 before passing to WebKit WebFrame loadData_MIMEType_textEncodingName_baseURL_. Fixes an issue with certain Mac OS X versions.
This commit is contained in:
@@ -21,7 +21,7 @@
|
||||
<key>CFBundleSignature</key>
|
||||
<string>????</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>3.3.1</string>
|
||||
<string>3.3.2</string>
|
||||
<key>LSHasLocalizedDisplayName</key>
|
||||
<true/>
|
||||
<key>NSMainNibFile</key>
|
||||
|
||||
@@ -129,7 +129,7 @@ class MSUOptionalInstallsViewController(NSViewController):
|
||||
self.descriptionView.mainFrame().loadHTMLString_baseURL_(description, None)
|
||||
else:
|
||||
self.descriptionView.mainFrame().loadData_MIMEType_textEncodingName_baseURL_(
|
||||
buffer(description),
|
||||
buffer(description.encode('UTF-8')),
|
||||
u"text/plain", u"utf-8", None)
|
||||
def updateDescriptionView(self):
|
||||
#NSLog(u"MSUOptionalInstallsViewController.updateDescriptionView")
|
||||
|
||||
@@ -78,7 +78,7 @@ class MSUupdatesViewController(NSViewController):
|
||||
self.descriptionView.mainFrame().loadHTMLString_baseURL_(description, None)
|
||||
else:
|
||||
self.descriptionView.mainFrame().loadData_MIMEType_textEncodingName_baseURL_(
|
||||
buffer(description),
|
||||
buffer(description.encode('UTF-8')),
|
||||
u"text/plain", u"utf-8", None)
|
||||
|
||||
def updateDescriptionView(self):
|
||||
|
||||
Reference in New Issue
Block a user