From 01de45e72929e05a589a90562329a494b5f29f11 Mon Sep 17 00:00:00 2001 From: october Date: Wed, 19 Apr 2017 15:32:46 +0800 Subject: [PATCH] add check img type by data --- engine/lib/core.function.php | 285 ++++++++++++++++++----------------- 1 file changed, 146 insertions(+), 139 deletions(-) diff --git a/engine/lib/core.function.php b/engine/lib/core.function.php index 607cf4f..c3dc954 100755 --- a/engine/lib/core.function.php +++ b/engine/lib/core.function.php @@ -1,140 +1,147 @@ -$value){ - if (substr($key,0,5)=="HTTP_") { - $key=str_replace(" ","-",ucwords(strtolower(str_replace("_"," ",substr($key,5))))); - $out[$key]=$value; - } - } - return $out; - } -} -function safeUrlString( $str ){ - $str = urldecode($str); - return str_replace( array( '.' , '/' ) , array() , $str ); +$value){ + if (substr($key,0,5)=="HTTP_") { + $key=str_replace(" ","-",ucwords(strtolower(str_replace("_"," ",substr($key,5))))); + $out[$key]=$value; + } + } + return $out; + } +} +function safeUrlString( $str ){ + $str = urldecode($str); + return str_replace( array( '.' , '/' ) , array() , $str ); } \ No newline at end of file