Skip to content

base64 incompatibility with the current lz-string version #13

Description

@nilp0inter

Hi,

because of changes made in the encoding method of lz-string(pieroxy/lz-string@2d5a419), the javascript version can produce strings that can't be decompressed with this version.

This example raise an IndexError:

l=lzstring.LZString()
l.decompresFromBase64("A4cwdA9gtAcg9APyA===")

If anyone is interested I've found this https://github.com/pieroxy/lz-string/blob/0dda98caa06c4c09e251a96378538169dfbc5a5f/libs/lz-string.js as the last version compatible.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions