-
-
Notifications
You must be signed in to change notification settings - Fork 92
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
HTML dump: drawio files with wrong URL #1742
Comments
@sebix: Do you have an idea how to simplify the code regarding the different contenttypes? |
Can you give me a hint which part of the code is relevant for this? |
I think it is the same area that I changed in #1741. The condition to check whether files are copied as raw item or rendered from markup is based on the contenttype from meta data and additionally based on the file extension. Maybe it is a better idea to render only items with CONTENTTYPE_MARKUP and copy raw files for the other. Regarding CONTENTTYPE_TEXT you should test what the best solution is. I am uncertain about the file extensions. For security reasons, do we need to check and restrict file extensions based on content type elsewhere, e.g. on item creation? When running dump-html, perhaps we can omit the file extension check? |
With #1741 already applied, we encountered another issue in the HTML dump.
.drawio
first)moin dump-html
Sandkasten/Diagram.drawio
shows a link to+get/+8e1c685bac8c4b2dbbda2f182a09b77b/Sandkasten/Diagram.drawio
The file is actually saved at
+get/Sandkasten/Diagram.drawio
The error does not happen for .gpx files, but both file types are text.
The text was updated successfully, but these errors were encountered: