libimobiledevice / libplist

A library to handle Apple Property List format in binary or XML
https://libimobiledevice.org
GNU Lesser General Public License v2.1
535 stars 304 forks source link

HTTP instead of HTTPS in xml files #152

Closed neheb closed 4 years ago

neheb commented 4 years ago

Is referencing http://www.apple.com/DTDs/PropertyList-1.0.dtd correct? It should be https://www.apple.com/DTDs/PropertyList-1.0.dtd AFAIK.

nikias commented 4 years ago

Yes, that's what Apple officially uses, see https://opensource.apple.com/source/CF/CF-1153.18/CFPropertyList.c.auto.html:

static void _CFGenerateXMLPropertyListToData(CFMutableDataRef xml, CFTypeRef propertyList) {
    _plistAppendUTF8CString(xml, "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE ");
    _plistAppendCharacters(xml, CFXMLPlistTagsUnicode[PLIST_IX], PLIST_TAG_LENGTH);
    _plistAppendUTF8CString(xml, " PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n<");
    _plistAppendCharacters(xml, CFXMLPlistTagsUnicode[PLIST_IX], PLIST_TAG_LENGTH);
    _plistAppendUTF8CString(xml, " version=\"1.0\">\n");
...