From 6f32b7fce206e42fec973ee288e1327107c69ef3 Mon Sep 17 00:00:00 2001 From: Yoshihiro OKUMURA Date: Wed, 22 Jun 2022 11:02:17 +0900 Subject: [PATCH] removed unused file. --- etc/extra.inc.php | 188 ---------------------------------------------- 1 file changed, 188 deletions(-) delete mode 100644 etc/extra.inc.php diff --git a/etc/extra.inc.php b/etc/extra.inc.php deleted file mode 100644 index 2f6d91d..0000000 --- a/etc/extra.inc.php +++ /dev/null @@ -1,188 +0,0 @@ -]*)src="(.*)"([^>]*)\/>/Us', function ($matches) use ($path) { - $url = htmlspecialchars_decode($matches[2], ENT_QUOTES); - $url = normalizeUrl($url, $path, 'imgSrc'); - $url = checkLocalFile($url, 'imgSrc'); - if (false === $url) { - exit($path.PHP_EOL); - } - - return ''; - }, $text); - $text = preg_replace_callback('/]*)href="([^"]+)"([^>]*)>/Us', function ($matches) use ($path) { - $url = htmlspecialchars_decode($matches[2], ENT_QUOTES); - if (!preg_match('/^#/', $url)) { - $url = normalizeUrl($url, $path, 'aHref'); - if (false === $url) { - exit($path.PHP_EOL); - } - $url = checkLocalFile($url, 'aHref'); - if (false === $url) { - exit($path.PHP_EOL); - } - } - - return ''; - }, $text); - $text = preg_replace_callback('/]*)src="(.*)"([^>]*)\/>/Us', function ($matches) use ($path) { - $url = htmlspecialchars_decode($matches[2], ENT_QUOTES); - $url = normalizeUrl($url, $path, 'embedSrc'); - if (false === $url) { - exit($path.PHP_EOL); - } - $url = checkLocalFile($url, 'embedSrc'); - if (false === $url) { - exit($path.PHP_EOL); - } - - return ''; - }, $text); - $text = preg_replace_callback('/