-
Notifications
You must be signed in to change notification settings - Fork 16
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
Printing as ZIP results in malformed ZIP #49
Comments
Printing as zip? I'm guessing we need to update the is ticket algorithm
…On Fri, 23 Oct 2020, 08:30 ds6, ***@***.***> wrote:
For example, http://osticket/scp/tickets.php?id=1&a=zip results in these
warnings:
PHP Warning: file_get_contents(): Unable to find the wrapper "phar" - did you forget to enable it when you configured PHP? in phar://osticket/include/plugins/attachment_preview.phar/class.AttachmentPreviewPlugin.php on line 169
PHP Warning: file_get_contents(phar://osticket/include/plugins/attachment_preview.phar/stylesheet.css): failed to open stream: No such file or directory in phar://osticket/include/plugins/attachment_preview.phar/class.AttachmentPreviewPlugin.php on line 169
PHP Warning: file_get_contents(): Unable to find the wrapper "phar" - did you forget to enable it when you configured PHP? in phar://osticket/include/plugins/attachment_preview.phar/class.AttachmentPreviewPlugin.php on line 186
PHP Warning: file_get_contents(phar://osticket/include/plugins/attachment_preview.phar/script.js): failed to open stream: No such file or directory in phar://osticket/include/plugins/attachment_preview.phar/class.AttachmentPreviewPlugin.php on line 186
And ignoring those warnings spits out the following malformed ZIP file:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html><body><p>PK</p><script></script>
</body></html>
I assume the NUL in the ZIP is causing the rest of the file to not display
in the <p> tag.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#49>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABGXTDY34XAKUTH7ZMEZEV3SMCQALANCNFSM4S3X7W5Q>
.
|
Hi are there any updates to this issue? My team love this plugin but every time they have to create a zip i must deactivate it and reactivate when it's done. Next time we want to update to 1.18 but i see there are also problems with compatibility |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For example,
http://osticket/scp/tickets.php?id=1&a=zip
results in these warnings:And ignoring those warnings spits out the following malformed ZIP file:
I assume the NUL in the ZIP is causing the rest of the file to not display in the
<p>
tag.The text was updated successfully, but these errors were encountered: