Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update operations.html #2879

Closed
wants to merge 3 commits into from
Closed

Update operations.html #2879

wants to merge 3 commits into from

Conversation

neptunia
Copy link
Contributor

Fix Pipe characters dropped from Fact during Parsing #2877

Description

Fixes an issue with facts containing the pipe character |, so that they are no longer dropped. Instead of using a separator value to delimit the fact name and value, prepend and store the length of the fact name, then extract the name and value using that.

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

Please describe the tests that you ran to verify your changes.

Ran the modified code with links with associated facts. Some facts contained the pipe character and some did not.

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works

Fix Pipe characters dropped from Fact during Parsing mitre#2877
@elegantmoose elegantmoose self-assigned this Feb 15, 2024
@elegantmoose
Copy link
Contributor

@neptunia @bjeffries Ive patched this issue for v5 (mitre/magma#41) . Do you need it for v4 as well?

TLDR - was attempting to put in a PR against v.4.2 but now hitting other issues so just making sure that the change would be useful in v4 as well before I keep going.

@elegantmoose
Copy link
Contributor

Closing as patch was made in v5, reopen if problem persists.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants