fhiiqm/inc/file_upload.inc.php
changeset 26 3c1e3ac7089f
parent 19 33ee23fafd4d
child 31 0a1eb975fbd9
--- a/fhiiqm/inc/file_upload.inc.php	Thu Apr 05 15:35:43 2012 +0200
+++ b/fhiiqm/inc/file_upload.inc.php	Mon May 07 16:21:00 2012 +0200
@@ -115,7 +115,7 @@
         // ev. vorhandene gaengige Umlaute ersetzen
         $fname = str_replace($su,$er,$fname);
         
-        if (strlen($typ) != 3) $typ="pdf";
+        if (strlen($typ) < 3) $typ="pdf";
         if (substr($fname,0,1) == ".")
             $fname = substr($fname,1,50-(4+$len)) . "." .$typ;
         else