Author | |
Alabastard
The Whitest Kid You Know

Look at what Hol has to put up with.
Posts: 102,190 Gender:  Karma: 1,151
Mood: Ornery
|
| We may now communicate with our Russian Republican overlords over encryption. Exciting!
|
|
Alabastard
The Whitest Kid You Know

Look at what Hol has to put up with.
Posts: 102,190 Gender:  Karma: 1,151
Mood: Ornery
|
| ...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.
|
|
Hol's Dibs
Russian Agent


Зовите меня Саша, пока вы меня возглавляете.
Posts: 75,365 Gender:  Karma: 1,859
Location: Redacted Away: The nightmare of MSNBC
|
| 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. |
|
|
Posts: 10,480 Gender:  Karma: -356
Location: Sewer tunnels
|
| 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? |
|
|
Alabastard
The Whitest Kid You Know

Look at what Hol has to put up with.
Posts: 102,190 Gender:  Karma: 1,151
Mood: Ornery
|
| 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.
|
|
Posts: 10,480 Gender:  Karma: -356
Location: Sewer tunnels
|
| 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? |
|
|
Alabastard
The Whitest Kid You Know

Look at what Hol has to put up with.
Posts: 102,190 Gender:  Karma: 1,151
Mood: Ornery
|
| 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.
|
|
Gudetama

I OWN STOCK IN SQUISHABLES.
PS. I HATE ALL OF YOU but please give me attention
Posts: 22,337 Gender:  Karma: 605
Location: Plate Mood: Lazy Away: Zzzzzz
|
| 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
__________________
|
|
Alabastard
The Whitest Kid You Know

Look at what Hol has to put up with.
Posts: 102,190 Gender:  Karma: 1,151
Mood: Ornery
|
| |
Alabastard
The Whitest Kid You Know

Look at what Hol has to put up with.
Posts: 102,190 Gender:  Karma: 1,151
Mood: Ornery
|
| 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.
|
|
|
|
|