Comments (4)
Pretty good point, but the script works only with mpdf.php renamed to mpdf_source.php which is not present in the repository unless the user renames it manually, which would mean knowing what he/she is doing. So I guess this is more of a users concern and can be solved correctly with potential future code cleanup.
I have reposted this to the official forum http://www.mpdf1.com/forum/discussion/2376/compress-php-should-not-be-accessible-from-the-internet
from mpdf.
Thanks! Because author do not use GitHub, should I close issue here?
Out of topic: You do not wanna know what happens when you run PHP Mess Detector on this project. :-) (or https://styleci.io)
from mpdf.
I'd leave it open so it shows up when the cleanup is started. We hope to move the development to more community-driven manner but it can still take some time. The official github repository is a start.
I know what happens when I run my own eyes on the project, I don't need a PHPMD for that ;-)
from mpdf.
Hi Jan, thanks for the tip!
I have updated the documentation http://sourcefabric.booktype.pro/booktype-20-for-authors-and-publishers/installing-a-pdf-renderer/ to suggest making the mPDF directory owned by root.
Then, even if the mPDF directory which contains compress.php and mpdf.php was served by Apache (which is not necessary in the case of Booktype, as we only use the cli), a user on the Internet side should not be able to write a new mpdf.php file in this directory. The user only needs write access to the graph_cache/ and tmp/ and ttfontdata/ subdirectories in order to generate PDFs.
Cheers!
Daniel
from mpdf.
Related Issues (20)
- Quickfix for color containing CSS variable is bad
- Hyphenation of words with hyphens not as expected HOT 3
- Add security reporting feature to the repo HOT 1
- There are some bugs related to border-collapse and padding and border with tables HOT 3
- Mpdf.php (#16141): Trying to access array offset on value of type null HOT 10
- Adding text to existing PDF file, can not move pdf file
- converting a .xlsx file to .pdf not retain the specified print area
- Undefined array key "VALUE" HOT 1
- htmlpagefooter element does not respect z-index HOT 4
- Error in pdf generation - Invalid argument supplied for foreach()
- Document structure is invalid or damaged HOT 6
- Getting Fatal error sometimes with the ColorConverter HOT 2
- Attribute value truncated when containing double quote character and using single quote delimiter
- Warning: Undefined array key "s" HOT 6
- Nesting a table inside a tfoot element results in "Trying to access array offset on null"
- PDF/A : endobj is missing EOL-Marker
- ArrayAccess::offsetSet()" might add "void" as a native return type
- Error while trying to save pdf to a folder. HOT 1
- Write HTML - NOTICE Uninitialized string offset - XXXX on Otl.php HOT 1
- Subsequent calls to Output() of pdf with images are missing images in 2++ data HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mpdf.