aboutsummaryrefslogtreecommitdiff
path: root/bridges/HaveIBeenPwnedBridge.php
diff options
context:
space:
mode:
authorGravatar logmanoriginal <logmanoriginal@users.noreply.github.com> 2019-06-02 13:03:26 +0200
committerGravatar logmanoriginal <logmanoriginal@users.noreply.github.com> 2019-06-02 13:06:16 +0200
commit6c4098d6558c33a5fcb2a8bc9fb29e915d56fc6c (patch)
tree433e33c7cab8b7aac2342c7d8c8e8ddf325463c5 /bridges/HaveIBeenPwnedBridge.php
parent468d8be72d34f0a94e5ae4090b3321c5bda4db35 (diff)
downloadrss-bridge-6c4098d6558c33a5fcb2a8bc9fb29e915d56fc6c.tar.gz
rss-bridge-6c4098d6558c33a5fcb2a8bc9fb29e915d56fc6c.tar.zst
rss-bridge-6c4098d6558c33a5fcb2a8bc9fb29e915d56fc6c.zip
Revert "all: Use ->remove() instead of ->outertext = ''"
This reverts commit 052844f5e13c71ceefd743136a71f71226a0eefb. There is a bug in ->remove() that causes the parser to incorrectly identify elements in the DOM tree that shouldn't exist anymore. References #1151
Diffstat (limited to 'bridges/HaveIBeenPwnedBridge.php')
-rw-r--r--bridges/HaveIBeenPwnedBridge.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/bridges/HaveIBeenPwnedBridge.php b/bridges/HaveIBeenPwnedBridge.php
index 8fac1e33..f256623a 100644
--- a/bridges/HaveIBeenPwnedBridge.php
+++ b/bridges/HaveIBeenPwnedBridge.php
@@ -50,7 +50,7 @@ class HaveIBeenPwnedBridge extends BridgeAbstract {
$permalink = $breach->find('p', 1)->find('a', 0)->href;
// Remove permalink
- $breach->find('p', 1)->find('a', 0)->remove();
+ $breach->find('p', 1)->find('a', 0)->outertext = '';
$item['title'] = $breach->find('h3', 0)->plaintext . ' - ' . $accounts[1] . ' breached accounts';
$item['dateAdded'] = strtotime($dateAdded[1]);