-
-
Notifications
You must be signed in to change notification settings - Fork 39
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
Absolute URLs are reformatted to relative paths (e.g., ../../) #286
Comments
Hi,
All hosting using a WAF should be blocking this by default. |
More information about the request impacted:
The json posted: {
"id_prettyblocks": 1,
"action": "updateBlockConfig",
"state": {
"content": {
"type": "editor",
"label": "Description",
"force_default_value": true,
"value": "<h2 data-placeholder-blurred=\"Rédigez un contenu\" data-placeholder-focused=\"Heading 2\"><a title=\"marques\" href=\"../../../../url_marque.html\" target=\"_blank\" rel=\"noopener\">marques</a><a title=\"fabriqués en France\" href=\"../../../../category/product.html\" target=\"_blank\" rel=\"noopener\">fabriqués en France</a> ainsi que de la <a title=\"robinetterie à économie d'eau\" href=\"../../../../categorie.html\" target=\"_blank\" rel=\"noopener\">robinetterie à économie d'eau</a>"
},
"text_align": {
"type": "select",
"label": "text alignment",
"default": "left",
"choices": {
"left": "Left",
"center": "Center",
"right": "Right"
},
"force_default_value": true,
"value": "left"
},
"templates": {
"default": "module:crea_prettyblocks/views/templates/blocks/html.tpl"
},
"templateSelected": "default",
"default": {
"container": true,
"load_ajax": false,
"bg_color": ""
}
},
"ajax": true,
"ctx_id_lang": 1,
"ctx_id_shop": 1,
"ajax_token": "xxx"
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,
I'm experiencing a critical issue with Pretty Block when working with absolute URLs in blocks. Specifically:
When I input an absolute URL (e.g., https://example.com/resource), it is automatically reformatted to a relative path like ../../resource.
Due to this, my hosting provider blocks the save operation, as it does not accept such relative paths for security or configuration reasons.
This makes it impossible for me to save the block and prevents me from using Pretty Block effectively.
Please let me know if more information or logs are needed to investigate further.
Thank you!
The text was updated successfully, but these errors were encountered: