git.gnu.io has moved to IP address 209.51.188.249 -- please double check where you are logging in.

Commit 8c096fd5 authored by Mike Sheldon's avatar Mike Sheldon

Handle protocol-free urls in radio handshake base url

parent 9c54daaf
......@@ -39,6 +39,7 @@ $adodb->Execute('DELETE FROM Radio_Sessions WHERE expires < ' . (int)(time()));
$adodb->Execute('INSERT INTO Radio_Sessions (username, session, expires) VALUES ( ' . $adodb->qstr($username) . ', ' . $adodb->qstr($session) . ', ' . (int)(time() + 259200) . ')');
$radio_base = preg_replace('/https?:\/\//i', '', $base_url, 1);
$radio_base = preg_replace('/^\/\//', '', $radio_base, 1);
echo 'session=' . $session . "\n";
echo "stream_url=this.is.broken.{$username}.example.com\n";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment