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

Fix for opening new tab from picker #7168

Merged
merged 1 commit into from
Jan 17, 2024
Merged

Conversation

sjpadgett
Copy link
Sponsor Member

The twig custom function csrfToken($subject = 'default', $fieldName = "_token") sig arg $subject will not default to arg value unless null is passed in. Quote counts as populated.

Fixes #7167

Short description of what this resolves:

Changes proposed in this pull request:

Modify twig function to ensure proper subject from csrf token creation is used in verification.

The twig custom function function ($subject = 'default', $fieldName = "_token") sig arg $subject will not default to arg value unless null is passed in. Quote counts as populated.
@sjpadgett
Copy link
Sponsor Member Author

Tested well. A simple universal fix so merging.

@sjpadgett sjpadgett merged commit 63732ad into openemr:master Jan 17, 2024
24 checks passed
@sjpadgett sjpadgett deleted the bug-7167 branch January 17, 2024 05:08
@bradymiller
Copy link
Sponsor Member

2DV-2(9)

sjpadgett added a commit to sjpadgett/openemr that referenced this pull request Feb 21, 2024
The twig custom function function ($subject = 'default', $fieldName = "_token") sig arg $subject will not default to arg value unless null is passed in. Quote counts as populated.

(cherry picked from commit 63732ad)
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.

bug: Authentication Error when opening a patient with Open in New Browser Tab checked.
2 participants