Skip to content

Conversation

@geordieintheshellcode
Copy link

Two bug fixes:

  1. When searching for a suitable handler in find_handler ensure that handler->subtype and the config string match exactly. The previous code would erroneously match config strings which were a prefix match of handler->subtype. For example, the config string "foo" would erroneously match against the subtype "foobar".
  2. This is slightly more paranoid. Ensure that when matching the config string against the expected prefix ("tcm-user") the strings match exactly. The previous code would erroneously match the config string "tcm-userXXX" against "tcm-user".

@geordieintheshellcode
Copy link
Author

Wondering if someone is able to take a look at this PR please?

@lxbsz
Copy link
Collaborator

lxbsz commented Feb 21, 2023

And also for this could you fix the commit comments as in #693 ?

Thanks,

@geordieintheshellcode geordieintheshellcode force-pushed the match-exactly-against-cfgstring branch from 9611e40 to 93122af Compare February 24, 2023 10:20
Ensure we pattern match 'cfgstring' against handler type exactly.
Ensure we pattern match the cfgstring prefix against 'tcm-user' exactly.

Signed-off-by: Alex Reid <[email protected]>
@geordieintheshellcode geordieintheshellcode force-pushed the match-exactly-against-cfgstring branch from 93122af to f505ac2 Compare February 24, 2023 10:22
@geordieintheshellcode
Copy link
Author

Comments addressed and commit comment fixed.

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.

2 participants