Minor clean-up; UTF-8 for SVG

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2667 eee81c28-f429-11dd-99c0-75d572ba1ddd
This commit is contained in:
Brett Zamir
2014-02-02 01:06:25 +00:00
parent a5083f0394
commit 1181de6847
4 changed files with 10 additions and 10 deletions

View File

@@ -25,7 +25,7 @@
$prefix = '';
// Make Data URL prefix for import image
if($type == 'import_img') {
if ($type == 'import_img') {
$info = getimagesize($file);
if (!in_array($info['mime'], $allowedMimeTypesBySuffix)) {
exit;
@@ -37,7 +37,8 @@
<head>
<meta charset="utf-8" />
<script>
window.top.window.svgEditor.processFile("<?php
top.svgEditor.processFile("<?php
// This should be safe since SVG edit does its own filtering (e.g., if an SVG file contains scripts)
echo $prefix . base64_encode($output);