public function internalRedirect($toUrl = '', $ssl = false)
{
if (filter_var($toUrl, FILTER_VALIDATE_URL)) {
- throw new InternalServerErrorException('URL is not a relative path, please use System::externalRedirectTo');
+ throw new InternalServerErrorException("'$toUrl is not a relative path, please use System::externalRedirectTo");
}
$redirectTo = $this->getBaseURL($ssl) . '/' . ltrim($toUrl, '/');
public static function externalRedirect($url)
{
if (!filter_var($url, FILTER_VALIDATE_URL)) {
- throw new InternalServerErrorException('URL is not a fully qualified URL, please use App->internalRedirect() instead');
+ throw new InternalServerErrorException("'$url' is not a fully qualified URL, please use App->internalRedirect() instead");
}
header("Location: $url");
$guid = System::createGUID(23, 'test');
$this->assertGuid($guid, 23, 'test');
}
-}
\ No newline at end of file
+}