mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-02 05:59:21 +03:00
Find links in html messages
This commit is contained in:
parent
d50c068a3d
commit
041bd1ae1b
6 changed files with 388 additions and 335 deletions
|
|
@ -740,7 +740,7 @@ class Utils
|
|||
{
|
||||
$sResult = '';
|
||||
$sContentType = \strtolower($sContentType);
|
||||
if (0 === strpos($sContentType, 'image/'))
|
||||
if (0 === \strpos($sContentType, 'image/'))
|
||||
{
|
||||
$sResult = 'image';
|
||||
}
|
||||
|
|
@ -847,7 +847,7 @@ class Utils
|
|||
*/
|
||||
public static function Php2js($mInput)
|
||||
{
|
||||
return \json_encode($mInput, defined('JSON_UNESCAPED_UNICODE') ? JSON_UNESCAPED_UNICODE : 0);
|
||||
return \json_encode($mInput, \defined('JSON_UNESCAPED_UNICODE') ? JSON_UNESCAPED_UNICODE : 0);
|
||||
|
||||
// if (\is_null($mInput))
|
||||
// {
|
||||
|
|
@ -918,25 +918,25 @@ class Utils
|
|||
*/
|
||||
public static function RecRmDir($sDir)
|
||||
{
|
||||
if (@is_dir($sDir))
|
||||
if (@\is_dir($sDir))
|
||||
{
|
||||
$aObjects = scandir($sDir);
|
||||
$aObjects = \scandir($sDir);
|
||||
foreach ($aObjects as $sObject)
|
||||
{
|
||||
if ('.' !== $sObject && '..' !== $sObject)
|
||||
{
|
||||
if ('dir' === filetype($sDir.'/'.$sObject))
|
||||
if ('dir' === \filetype($sDir.'/'.$sObject))
|
||||
{
|
||||
self::RecRmDir($sDir.'/'.$sObject);
|
||||
}
|
||||
else
|
||||
{
|
||||
@unlink($sDir.'/'.$sObject);
|
||||
@\unlink($sDir.'/'.$sObject);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return @rmdir($sDir);
|
||||
return @\rmdir($sDir);
|
||||
}
|
||||
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue