fonteditor/php/readFont.php
2014-10-31 00:51:20 +08:00

6 lines
229 B
PHP

<?php
header( "Content-Type: application/octet-stream");
$file = $_GET['file'];
if ($file && preg_match("#^https?:\/\/.+?\.(ttf|woff|svg|eot)$#i", $file, $matches)) {
echo file_get_contents($matches[0]);
}