Closed unverbuggt closed 1 year ago
I back to check your changes but I still don't have the time to fully validate. And it's seems to have a problem during the build when I incorporate your changes. I have to find the time to do some fix. Sorry for the delay.
By the way, would you like to take over the management of this plugin? I no longer have the time and the motivation to correct the problems and improve the plugin . . .
Hi,
even though the default setting when "encryptcontent" and "search" is enabled (
search_index: 'encrypted'
) behaves as describedi think it is a bit anoying that search results of encrypted pages show up (encrypted) because the search term is included in the heading or title (third patch fixes this). And thus removing all encrypted pages from the search index seems better with this mode.
I know it's an experimental feature, but at first the
search_index: 'dynamically'
didn't work at all in my environment (Windows - first patch).The second problem i encountered (second patch) was that the search index contains 'location' relative to the site root, but in my case window.location.pathname would additionally contain a path different from / (root). To clarify:
now this happens in javascript:
window.location.pathname = /foo/bar/
\ but the search index contains alocation = bar/
so it is never decrypted whendecrypt_search
is called.The last part that I wanted to fix is the leaking of additional information about the encrypted pages, namely the titles of all headings and anchors of the encrypted pages (fourth patch).