Skip to content
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

Mixed (non-HTTPS) content warnings due to smileys in old comments #48

Open
oskarlh opened this issue Feb 14, 2021 · 3 comments
Open

Mixed (non-HTTPS) content warnings due to smileys in old comments #48

oskarlh opened this issue Feb 14, 2021 · 3 comments

Comments

@oskarlh
Copy link
Contributor

oskarlh commented Feb 14, 2021

The smileys in old comments and posts are rendered as
<img class="smiley" src="http://192.241.182.11/images/smilies/smile.png" alt=":)">
Examples: https://twhl.info/news/view/348 https://twhl.info/thread/view/19089 https://twhl.info/journal/view/8895
The http:// part causes browsers to warn about insecure content. Not sure what happens if you want to change the server's IP address. New comments don't have this issue

@LogicAndTrick
Copy link
Owner

I wonder how that IP address got in there in the first place? That's bizarre...

@oskarlh
Copy link
Contributor Author

oskarlh commented Jul 12, 2021

It seems this is causing a bigger issue in Chrome, that the browser refuses to load the images.

@oskarlh
Copy link
Contributor Author

oskarlh commented Jul 12, 2021

I suppose something like this should fix it, but with different tables and fields:
UPDATE comments SET content_html=REPLACE(content_html, 'http://192.241.182.11/', 'https://twhl.info/')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants