Remove throwing on libxml error
authorjoshuaruesweg <ruesweg@woltlab.com>
Fri, 5 Mar 2021 09:36:50 +0000 (10:36 +0100)
committerjoshuaruesweg <ruesweg@woltlab.com>
Tue, 16 Mar 2021 15:19:14 +0000 (16:19 +0100)
wcfsetup/install/files/lib/system/message/unfurl/UnfurlResponse.class.php

index fc0bd6bedc0f24c302729687db1edde4e0c50229..abd3b70fae27372c859ce073a42b23e91f4521e1 100644 (file)
@@ -189,9 +189,6 @@ final class UnfurlResponse
             if (!$this->domDocument->loadHTML('<?xml version="1.0" encoding="UTF-8"?>' . $this->body)) {
                 throw new ParsingFailed("DOMDocument::loadHTML() failed");
             }
-            foreach (\libxml_get_errors() as $error) {
-                throw new ParsingFailed("libxml error: {$error->message}.", $error->code);
-            }
         } finally {
             \libxml_use_internal_errors($useInternalErrors);
             \libxml_clear_errors();