Skip to content

fix bad length counter, fix handling null bytes, refactor#4

Open
amfleurke wants to merge 1 commit intorenasboy:masterfrom
amfleurke:master
Open

fix bad length counter, fix handling null bytes, refactor#4
amfleurke wants to merge 1 commit intorenasboy:masterfrom
amfleurke:master

Conversation

@amfleurke
Copy link
Copy Markdown

There were two problems for me that I fixed in this version:

  • counting the length of the session string was done before escaping, so it did not count all bytes.
  • null bytes were not properly inserted.
  • skip non-session files (in case you have your session files mixed with other files in a dir

I also refactored a bit:

  • use function instead of recursive call. Is better readable
  • echo what the script does, don't echo 'find: no access to file xxx' if you have (other) files with wrong permission in the session files dir

…tion instead of recursive call, echo what is going on
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant