load external images through redirect in HTML version (patch attached)
Updated by Koen Deforche over 7 years ago
- Status changed from New to InProgress
- Assignee set to Koen Deforche
Nice ! I might start to make a habit of leaving TODO trails in the code :-)
I do think that the regular expression needs some more tweaking to handle uri scheme relative urls.
Updated by Boris Nagaev over 7 years ago
I did not know about relative uri schemes. Thank you!
BTW "://" is used several times in Wt (not only in proposed patch) to detect external images.
Wt/WApplication.C (in function encodeUntrustedUrl, which is called from RefEncoder)
web/skeleton/Wt.js (var crossDomain = url.indexOf("://") != --1 and other, seems to be a bug!)