What a Weird World We Live In
Register Calendar Members List Search Frequently Asked Questions Go to the Main Page

What a Weird World We Live In » The Jerkstore  » First and First - The Nexus of the Universe  » Automatic HTTPS forwarding enabled.» Hello Guest [Login|Register]
Last Post | First Unread PostRecommend on Facebook
Post New Thread Post Reply
Go to the bottom of this page Automatic HTTPS forwarding enabled.
Post« Previous Thread | Next Thread »
03-26-2017 12:16 PMAlabastard is offline Send an Email to Alabastard Search for Posts by Alabastard Post Reply with Quote Edit/Delete Post       Go to the top of this page

We may now communicate with our Russian Republican overlords over encryption. Exciting!
03-26-2017 12:42 PMAlabastard is offline Send an Email to Alabastard Search for Posts by Alabastard Post Reply with Quote Edit/Delete Post       Go to the top of this page

...though I can't figure out why hotlinking a local HTTP image won't convert to an encrypted version. You'd think they would try to upgrade the attempt.
03-26-2017 6:37 PMRussian Agent is offline Send an Email to Russian Agent Search for Posts by Russian Agent Post Reply with Quote Edit/Delete Post       Go to the top of this page

Quote:
We may now communicate with our Russian Republican overlords over encryption. Exciting!


The kremlin, the lizard people, the trilateral commission, that cult from silent hill. We can conference call with all our employers now.

So much more convenient than the old method where we had to use a numbers station broadcast secretly via discord VOIP.

__________________
JE SUIS CHARLIE


These are not fairy tales, or myths. This place of power is tangible, and as such, can be found, entered, and perhaps, utilized in some fashion..

Quote by Nina Fortner (regarding faking one's death):
Been there done that. No one would believe it this time.

Quote by Alizarin:
holy fuck i am ready to burn it all down. all of it.

03-26-2017 8:04 PMEdger is offline Send an Email to Edger Search for Posts by Edger Post Reply with Quote Edit/Delete Post       Go to the top of this page

Quote by Alabastard:
...though I can't figure out why hotlinking a local HTTP image won't convert to an encrypted version. You'd think they would try to upgrade the attempt.


What do you mean local, the attachments and such?

The server can't send you an HTTPS resource if you request an HTTP one, because the request to open an encrypted connection/transfer has to start from the client. Unless you use that upgrade CSP, like I mentioned in chat, but then that'll block anything that fails to upgrade.

What'll probably work best for you is to just update your code so that new images are inserted with https, if you're having anything that's writing out the URLs (like the initial post where you upload attachments).

If you were using relative paths, then it'd try HTTPS if you were on HTTPS, so I'm guessing the generated stuff is hardcoded as http://sr.net/whatever/ instead of /whatever/ ? (Or, some server-side stuff will have a var like "urlPrefix" that contains http://etc. No idea how the forum is running, been forever since I had access to that code.)


For existing stuff in posts and profiles, you can probably use MySQL's REPLACE to swap http://seraphicradiance with https://seraphicradiance

__________________
Quote by Jack Crawford:
What the fuck? Ed looks less like a nerd than I do. What bullshit is that?

03-26-2017 8:05 PMAlabastard is offline Send an Email to Alabastard Search for Posts by Alabastard Post Reply with Quote Edit/Delete Post       Go to the top of this page

Nah, I know what to do.

I'll use a CURL request to see if an HTTPS version exists, and if it does, use that.
03-26-2017 9:01 PMEdger is offline Send an Email to Edger Search for Posts by Edger Post Reply with Quote Edit/Delete Post       Go to the top of this page

Works fine for external resources, but all your internal resources should automatically know to go https.

__________________
Quote by Jack Crawford:
What the fuck? Ed looks less like a nerd than I do. What bullshit is that?

03-26-2017 9:36 PMAlabastard is offline Send an Email to Alabastard Search for Posts by Alabastard Post Reply with Quote Edit/Delete Post       Go to the top of this page

Seems all good now.

Eventually I'll run an updater to deal with this on a more permanent basis so I don't have to perform the internal check.
03-26-2017 11:25 PMGudetama is offline Send an Email to Gudetama Search for Posts by Gudetama Post Reply with Quote Edit/Delete Post       Go to the top of this page

Possibly related error when I was trying to edit my Korean text post in the Listening thread

Parse error: syntax error, unexpected 'curl_setopt' (T_STRING) in /home/seraphic/public_html/BB/acp/lib/class_parse.php on line 405

__________________


03-26-2017 11:42 PMAlabastard is offline Send an Email to Alabastard Search for Posts by Alabastard Post Reply with Quote Edit/Delete Post       Go to the top of this page

Was messing with it.
03-27-2017 12:55 AMAlabastard is offline Send an Email to Alabastard Search for Posts by Alabastard Post Reply with Quote Edit/Delete Post       Go to the top of this page

Well, this had a nice side benefit of finding an absolutely horrible bug that was making those little quick links you use to jump to the first new post slow.
« Previous Thread | Next Thread »
Jump to:
Post New Thread Post Reply
What a Weird World We Live In » The Jerkstore  » First and First - The Nexus of the Universe  » Automatic HTTPS forwarding enabled.