-
Notifications
You must be signed in to change notification settings - Fork 241
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
Show images after used url_prefix #1453
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks somewhat correct, but calling on some more reviewers to have a look.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ditto. Looks OK, but this code is hard to follow. Will need more review and careful testing.
So before this fix, the external images gets the same hostname as the site? While after the fix you get the external AWS hostname (and path)?
Hi, before the patch the external images do not receive the same host name just "/", and by the patch it receives the AWS host. |
@anijra Thanks. I'm wondering if image links on non-AWS sites also will include the hostname with this fix. It should work well in either case. |
* commit 'c49eef93f50c665a3d7a6b2aa6387ccd46e059f5': Removed invalid constructor call Fixed wrong old-style constructor usage EZP-31040: Remote Code Execution in file uploads Show images after used url_prefix (ezsystems#1453) improve php 7 bc doc (ezsystems#1452) Fix notice when checking for anonymous classes in autoload generator (ezsystems#1450) Do not support literal HTML in the Administration Interface (ezsystems#1408) Fix transformURI() on ignoreIndexDir & ! htmlEscape (ezsystems#1449) Make autoloads ignore anonymous classes (ezsystems#1448) Update php7.md Fixing search in media lib which used to loose context (ezsystems#1433) [Travis] Add testing for PHP 7.2 and 7.3 (ezsystems#1446) EZP-30834: remove strtotime function from the trashed-days option (ezsystems#1441) Fix instances of count() that would cause a warning in 7.2 Updated dbupdate scripts so they will no longer fail when there are multiple users with the same e-mail (ezsystems#1445)
* Show images after used url_prefix * CS
* Show images after used url_prefix * CS Co-authored-by: Anis Jrad <[email protected]>
Hi! It seems this issue causes a regression where image added to a XML text field ends up with a starting double slash in the source code: This ultimately causes Chrome to request the image with /cc @iherak |
@emodric This is in cases not using AWS S3, or what? |
Yep, normal local install, no DFS or nothing. |
So the quickest solution is to revert this. Better to break AWS, than everything else (at least non-dfs). And then do a better-tested aws fix later. 2nd opinion... @bdunogier maybe? |
After using AWS S3 as the source of external images, they do not appear in the rich text editor and in the modal of inserting images, this pull request will be resolved this problem.