Changeset 2958751
- Timestamp:
- 08/27/2023 12:52:24 AM (3 years ago)
- Location:
- wxsync/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (2 diffs)
-
wxsync.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wxsync/trunk/readme.txt
r2957767 r2958751 3 3 Donate link: http://std.cloud 4 4 Tags: 微信公众号,免费,公众号文章采集,数据采集,微信公众号采集 5 Stable tag: 2.7.2 45 Stable tag: 2.7.25 6 6 Tested up to: 6.3 7 7 License: GPLv2 or later … … 32 32 33 33 == Changelog == 34 2.7.2 4修复bug34 2.7.25 修复bug 35 35 36 36 2.7.22 可采集新模板 -
wxsync/trunk/wxsync.php
r2957767 r2958751 4 4 Plugin URI: http://std.cloud 5 5 Description: 标准云微信公众号文章免费采集、<strong>任意公众号自动采集付费购买</strong> 6 Version: 2.7.2 46 Version: 2.7.25 7 7 Author: 标准云(std.cloud) 8 8 Author URI: http://std.cloud … … 24 24 $GLOBALS['wxsync_tab'] = ''; 25 25 $GLOBALS['wxsync_error'] = array(); 26 $GLOBALS['wxsync_ver'] = '2.7.2 4';26 $GLOBALS['wxsync_ver'] = '2.7.25'; 27 27 $GLOBALS['wxsync_code'] = 0; 28 28 … … 147 147 } 148 148 149 $req['wxsync_settoken'] = esc_sql($req['wxsync_settoken']);149 $req['wxsync_settoken'] = wxsync_xss($req['wxsync_settoken']); 150 150 151 151 $sql = "select * from {$table_prefix}wxsync_config where id = 1"; … … 212 212 $str = ''; 213 213 }else{ 214 $obj['host'] = esc_sql($req['host']);215 $obj['port'] = esc_sql($req['port']);216 $obj['username'] = esc_sql($req['username']);217 $obj['password'] = esc_sql($req['password']);214 $obj['host'] = wxsync_xss($req['host']); 215 $obj['port'] = wxsync_xss($req['port']); 216 $obj['username'] = wxsync_xss($req['username']); 217 $obj['password'] = wxsync_xss($req['password']); 218 218 $str = json_encode($obj); 219 219 } … … 242 242 243 243 244 $str = esc_sql($req['wxsync_autoproxyset_token']);244 $str = wxsync_xss($req['wxsync_autoproxyset_token']); 245 245 246 246 … … 261 261 } 262 262 263 } 264 265 function wxsync_xss($str){ 266 $str = esc_sql($str); 267 $str = htmlspecialchars($str); 268 return $str; 263 269 } 264 270
Note: See TracChangeset
for help on using the changeset viewer.