purpleslurple / PurpleSlurple

PurpleSlurple transcodes web pages to make them granularly accessible.
GNU General Public License v2.0
0 stars 0 forks source link

Implement proper error handling #93

Open purpleslurple opened 1 year ago

purpleslurple commented 1 year ago

Stop suppressing errors: https://github.com/purpleslurple/PurpleSlurple/blob/2e57710d52bf7b3aad03b2e0bf6715c40eb0fed0/psArchive.php#L96

purpleslurple commented 1 year ago

If you can’t control the source of $theurl, consider validating or preprocessing the HTML content before passing it to DOMDocument. https://chat.openai.com/share/a748a3a4-597e-4050-9a23-db2a93d65fe4