mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-07 04:58:40 +00:00
bug and media fixes
This commit is contained in:
parent
868390a7f3
commit
05066c520e
|
|
@ -895,7 +895,7 @@ class Email implements MessageInterface
|
||||||
|
|
||||||
$errorcode = 0;
|
$errorcode = 0;
|
||||||
if (\defined('INTL_IDNA_VARIANT_UTS46')) {
|
if (\defined('INTL_IDNA_VARIANT_UTS46')) {
|
||||||
$punycode = \idn_to_ascii($domain, $errorcode, \INTL_IDNA_VARIANT_UTS46);
|
$punycode = \idn_to_ascii($domain, $errorcode, INTL_IDNA_VARIANT_UTS46);
|
||||||
} else {
|
} else {
|
||||||
$punycode = \idn_to_ascii($domain, $errorcode);
|
$punycode = \idn_to_ascii($domain, $errorcode);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -904,7 +904,10 @@ final class DirectoryTest extends \PHPUnit\Framework\TestCase
|
||||||
public function testNodeInvalid() : void
|
public function testNodeInvalid() : void
|
||||||
{
|
{
|
||||||
$dir = new Directory(new HttpUri(self::BASE . __DIR__ . '/dirtest'), '*', true, self::$con);
|
$dir = new Directory(new HttpUri(self::BASE . __DIR__ . '/dirtest'), '*', true, self::$con);
|
||||||
$dir?->next()?->next()?->next()?->next()?->next()?->next()?->next();
|
|
||||||
|
while ($dir->valid()) {
|
||||||
|
$dir->next();
|
||||||
|
}
|
||||||
|
|
||||||
self::assertFalse($dir->valid());
|
self::assertFalse($dir->valid());
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user