mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-12-01 21:15:20 +08:00
DB/Structure
* fix data types and data length and add default values where necessary * data should no longer get truncated * misc fixes
This commit is contained in:
@@ -155,7 +155,7 @@ function setup() : void
|
||||
|
||||
if ($rCode == 301 || $rCode == 302)
|
||||
{
|
||||
if (!empty($res['Location']) && preg_match("/(https?:\/\/)(.*)".strtr($testFile, ['/' => '\/', '.' => '\.'])."/i", $res['Location'], $n))
|
||||
if (!empty($res['Location']) && preg_match("/(https?:\/\/)(.*)".strtr($testFile, ['/' => '\/', '.' => '\.'])."/i", is_array($res['Location']) ? array_pop($res['Location']) : $res['Location'], $n))
|
||||
{
|
||||
$protocol = $n[1];
|
||||
$host = $n[2];
|
||||
|
||||
Reference in New Issue
Block a user