diff --git a/docroot/sites/all/libraries/highcharts/exporting-server/php/php-batik/index.php b/docroot/sites/all/libraries/highcharts/exporting-server/php/php-batik/index.php
index 5b0c208c0..56e47960a 100644
--- a/docroot/sites/all/libraries/highcharts/exporting-server/php/php-batik/index.php
+++ b/docroot/sites/all/libraries/highcharts/exporting-server/php/php-batik/index.php
@@ -2,12 +2,12 @@
 /**
  * This file is part of the exporting module for Highcharts JS.
  * www.highcharts.com/license
- * 
- *  
+ *
+ *
  * Available POST variables:
  *
  * $filename  string   The desired filename without extension
- * $type      string   The MIME type for export. 
+ * $type      string   The MIME type for export.
  * $width     int      The pixel width of the exported raster image. The height is calculated.
  * $svg       string   The SVG source code to convert.
  */
@@ -16,9 +16,6 @@
 // Options
 define ('BATIK_PATH', 'batik-rasterizer.jar');
 
-///////////////////////////////////////////////////////////////////////////////
-ini_set('magic_quotes_gpc', 'off');
-
 $type = $_POST['type'];
 $svg = (string) $_POST['svg'];
 $filename = (string) $_POST['filename'];
@@ -28,7 +25,7 @@ if (!$filename or !preg_match('/^[A-Za-z0-9\-_ ]+$/', $filename)) {
 	$filename = 'chart';
 }
 if (get_magic_quotes_gpc()) {
-	$svg = stripslashes($svg);	
+	$svg = stripslashes($svg);
 }
 
 // check for malicious attack in SVG
@@ -42,7 +39,7 @@ $tempName = md5(rand());
 if ($type == 'image/png') {
 	$typeString = '-m image/png';
 	$ext = 'png';
-	
+
 } elseif ($type == 'image/jpeg') {
 	$typeString = '-m image/jpeg';
 	$ext = 'jpg';
@@ -61,7 +58,7 @@ if ($type == 'image/png') {
 $outfile = "temp/$tempName.$ext";
 
 if (isset($typeString)) {
-	
+
 	// size
 	$width = '';
 	if ($_POST['width']) {
@@ -70,19 +67,19 @@ if (isset($typeString)) {
 	}
 
 	// generate the temporary file
-	if (!file_put_contents("temp/$tempName.svg", $svg)) { 
+	if (!file_put_contents("temp/$tempName.svg", $svg)) {
 		die("Couldn't create temporary file. Check that the directory permissions for
 			the /temp directory are set to 777.");
 	}
-	
+
 	// do the conversion
 	$output = shell_exec("java -jar ". BATIK_PATH ." $typeString -d $outfile $width temp/$tempName.svg");
-	
+
 	// catch error
 	if (!is_file($outfile) || filesize($outfile) < 10) {
 		echo "<pre>$output</pre>";
 		echo "Error while converting SVG. ";
-		
+
 		if (strpos($output, 'SVGConverter.error.while.rasterizing.file') !== false) {
 			echo "
 			<h4>Debug steps</h4>
@@ -94,15 +91,15 @@ if (isset($typeString)) {
 			<li>Click the Check button</li>
 			</ol>";
 		}
-	} 
-	
+	}
+
 	// stream it
 	else {
 		header("Content-Disposition: attachment; filename=\"$filename.$ext\"");
 		header("Content-Type: $type");
 		echo file_get_contents($outfile);
 	}
-	
+
 	// delete it
 	unlink("temp/$tempName.svg");
 	unlink($outfile);
@@ -112,7 +109,7 @@ if (isset($typeString)) {
 	header("Content-Disposition: attachment; filename=\"$filename.$ext\"");
 	header("Content-Type: $type");
 	echo $svg;
-	
+
 } else {
 	echo "Invalid type";
 }
