Commit 26b384f6 authored by liuqiao's avatar liuqiao

分站上传图片 判断路径中是否有'?'存在

parent f906b9c0
...@@ -88,7 +88,7 @@ class Rent_model extends Rent_base_model { ...@@ -88,7 +88,7 @@ class Rent_model extends Rent_base_model {
} }
$token = explode("=",$v); $token = explode("=",$v);
$pid = intval($token[1]); $pid = intval($token[1]);
$filename = substr($v, 0, strpos($v, '?')); $filename = (strpos($v, '?') === true) ? substr($v, 0, strpos($v, '?')) : $v;
$idkind = substr( $token[0],-3); $idkind = substr( $token[0],-3);
$title = $pics['p_title'][$k]=='图片描述..限30字' ? '': strip_tags($pics['p_title'][$k]); $title = $pics['p_title'][$k]=='图片描述..限30字' ? '': strip_tags($pics['p_title'][$k]);
$sort = $pics['p_sort'][$k]; $sort = $pics['p_sort'][$k];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment