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

Fixed: #30976 #30979

Open
wants to merge 2 commits into
base: 19.0
Choose a base branch
from
Open

Fixed: #30976 #30979

wants to merge 2 commits into from

Conversation

accellier-dev
Copy link

@accellier-dev accellier-dev commented Sep 16, 2024

Bug Fixed: #30976, ODT to PDF Invoice having full file path in their Filename.

header('Content-type: application/pdf');
header('Content-Disposition: attachment; filename="'.$name.'.pdf"');
header('Content-Disposition: attachment; filename="'.$fname.'.pdf"');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not just doing
header('Content-Disposition: attachment; filename="'.basename($name).'.pdf"');

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, It'll be quick fix, Thanks

@eldy eldy added the Discussion Some questions or discussions are opened and wait answers of author or other people to be processed label Sep 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Discussion Some questions or discussions are opened and wait answers of author or other people to be processed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants