Solutions for PHPCMS Frontend Submission Garbled Text, Image Upload Size Limits, and Push Sorting

       phpcms v9 Test,9.x。


1. Frontend Submission Garbled Text
I don’t know how the official team conducted testing, but every release has numerous bugs. After this update, there was another wave of criticism, including frontend submission garbled text.
Debugging revealed that it was caused by HTML character filtering. Only one line of code needs to be changed.

modules/member/content.php
line 52:

if(in_array($_k, $fields)) $info[$_k] = $_v;   //Comment here  20130509

,,,?

()libs/classes/attachment.class.php
line 49:
//$this->maxsize = $maxsize;   //  20140609
if(empty($maxsize) || $maxsize == 0) {
$site_setting = $this->_get_site_setting($this->siteid);
$this->maxsize = $site_setting['upload_maxsize']*1024;
}
//edited over
line 381:
return iconv(CHARSET,"gbk",$UPLOAD_ERROR[$this->error]); //edited by lsyer 20130509
()modules/attachment/attachment.php
line 43:
//added by lsyer 20130509
else
{
echo($attachment->error());
}

//over 

,,listorderid,,,,。、,。,,,。

 module/admin/classes/push_api.class.php
line 136:

  //$info['id] = $info['listorder'] = $d['id'];  
  $info['id] = $d['id']; //edited by lsyer 20130505  
,v9_position_data,listorder,Settings。

phpcms:、,、、,。

Leave a Comment

Your email address will not be published.