Hi,
Maybe you can add some kind of a salt string to the hash if that is what’s making it weak for smaller strings.
In my case for some reason every ~ 10th page had a collision, note sure why, here’s a post I found on stackoveflow
https://stackoverflow.com/questions/13455067/horrific-collisions-of-adler32-hash
Hey @mddswalk,
The plugin will probably not work properly if the html on your page is invalid or with html markup errors, also for me it was outputting another HTML doctype declaration so I modified the line:
$doc->loadHTML( mb_convert_encoding( $content, ‘HTML-ENTITIES’, ‘UTF-8’ ))
to
$doc->loadHTML( mb_convert_encoding( $content, ‘HTML-ENTITIES’, ‘UTF-8’ ), LIBXML_HTML_NOIMPLIED | LIBXML_HTML_NODEFDTD );
I will try to suggest this change to the author.
Best!
Thanks Jon, looks like I don’t have the permissions to edit that codex page.