Cause error if content is PDF binary
-
I am generating certificate from LearnDash, it uses TCPDF to output PDF binary content to standard output. CDN Enabler will try to replace the content in the PDF and cause display abnormally. However, this only happens on the certificate contained Chinese characters. I did not try other language yet. Since the output is binary, I can not understand it.
I use xDebug compared $html and $cdn_html, and found there must be something wrong with the $regex_rule. Because it replaces some wired thing into my CDN URL.
I think you can either let user to exclude some url, like Cache Enabler. Or you can improve your rule to handle content like this better.
What do you think about this issue?
The topic ‘Cause error if content is PDF binary’ is closed to new replies.