diff --git a/cis/public/bild.php b/cis/public/bild.php
index 3c2a13134..9caef6389 100644
--- a/cis/public/bild.php
+++ b/cis/public/bild.php
@@ -1,81 +1,74 @@
-,
- * Andreas Oesterreicher and
- * Rudolf Hangl .
- */
-// Holt den Hexcode eines Bildes aus der DB wandelt es in Zeichen
-// um und gibt das ein Bild zurueck.
-// Aufruf mit foto!='')
- $cTmpHEX=$row->foto;
- }
- }
-}
-
-ob_clean();
-header("Content-type: image/jpeg");
-//die bilder werden, sofern es funktioniert, in jpg umgewandelt da es sonst zu fehlern beim erstellen
-//von pdfs kommen kann.
-$im = @imagecreatefromstring (hexstr($cTmpHEX));
-if($im!==false)
-{
- exit(imagejpeg($im));
-}
-else
-{
- //bei manchen Bildern funktioniert die konvertierung nicht
- //diese werden dann einfach so angezeigt.
- echo hexstr($cTmpHEX);
-}
+,
+ * Andreas Oesterreicher and
+ * Rudolf Hangl .
+ */
+// Holt den Hexcode eines Bildes aus der DB wandelt es in Zeichen
+// um und gibt das ein Bild zurueck.
+// Aufruf mit foto!='')
+ $cTmpHEX=$row->foto;
+ }
+ }
+}
+
+//die bilder werden, sofern es funktioniert, in jpg umgewandelt da es sonst zu fehlern beim erstellen
+//von pdfs kommen kann.
+$im = @imagecreatefromstring(hexstr($cTmpHEX));
+if($im!==false)
+{
+ @ob_clean();
+ header("Content-type: image/jpeg");
+ exit(imagejpeg($im));
+}
+else
+{
+ //bei manchen Bildern funktioniert die konvertierung nicht
+ //diese werden dann einfach so angezeigt.
+ @ob_clean();
+ header("Content-type: image/gif");
+ echo hexstr($cTmpHEX);
+}
?>
\ No newline at end of file
diff --git a/cis/testtool/admin/index.php b/cis/testtool/admin/index.php
index 1fcae4a20..a32248171 100644
--- a/cis/testtool/admin/index.php
+++ b/cis/testtool/admin/index.php
@@ -125,7 +125,7 @@ if(isset($_POST['submitbild']))
{
//Extension herausfiltern
$ext = explode('.',$_FILES['bild']['name']);
- $ext = mb_strtolower($ext[count($ext)-1],'UTF-8');
+ $ext = mb_strtolower($ext[count($ext)-1]);
//--check that it's a jpeg or gif or png
if ($ext=='gif' || $ext=='png' || $ext=='jpg' || $ext=='jpeg')
@@ -164,7 +164,7 @@ if(isset($_POST['submitaudio']))
{
//Extension herausfiltern
$ext = explode('.',$_FILES['audio']['name']);
- $ext = mb_strtolower($ext[count($ext)-1],'UTF-8');
+ $ext = mb_strtolower($ext[count($ext)-1]);
//--check that it's a mp3
if ($ext=='mp3' || $ext=='ogg')
@@ -241,7 +241,7 @@ if(isset($_POST['submitvorschlag']))
{
//Extension herausfiltern
$ext = explode('.',$_FILES['bild']['name']);
- $ext = mb_strtolower($ext[count($ext)-1],'UTF-8');
+ $ext = mb_strtolower($ext[count($ext)-1]);
//--check that it's a jpeg or gif or png
if ($ext=='gif' || $ext=='png' || $ext=='jpg' || $ext=='jpeg')
@@ -264,7 +264,7 @@ if(isset($_POST['submitvorschlag']))
{
//Extension herausfiltern
$ext = explode('.',$_FILES['audio']['name']);
- $ext = mb_strtolower($ext[count($ext)-1],'UTF-8');
+ $ext = mb_strtolower($ext[count($ext)-1]);
//--check that it's a jpeg or gif or png
if ($ext=='mp3')