46 Commits

Author SHA1 Message Date
猫东东 9364388035 修复 PHP 8.4+ 中 PDO::MYSQL_ATTR_USE_BUFFERED_QUERY 的弃用警告 (#1922) 2025-11-27 09:05:18 +08:00
Luffy 7a3c86a110 Support connect to mysql using socket (#1749)
* Support connect to mysql using socket

* pgsql can also use unix_socket

fix Deprecated: pg_escape_string(): Automatic fetching of PostgreSQL connection

* Update install.php

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update var/Typecho/Db/Adapter/Mysqli.php

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Fix quoteValue method to correctly escape single quotes in strings

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-11-20 23:55:43 +08:00
Luffy 570f982709 Add 'NOT' to query keywords (#1903) 2025-11-19 22:28:13 +08:00
joyqi 3caebb3b20 v1.3.0 (#1661)
* Add feed widget

* add feed render

* Add CommentPage widget

* New theme (#1390)

* 调整忽略目录

* add theme

* fix theme scss build

Co-authored-by: fen <f3nb0x@gmail.com>

* s/is_writeable/is_writable/g

* New upgrade method

* merge new fixes from master

* add pgsql ssl mode support (ref #1600) (#1623)

* Feat/code refactor (#1626)

* remove all magic methods, add type for class properties

* refactor codes

* fix all

* refactor code

* fix type

* fix all

* fix request is method

* fix all

* fix router

* fix get page

* fix 1.3.0 upgrade

* [feat] support high resolution avatar

* fix types in i18n component

* Implement Ctrl+S or Command+S for save draft (#1628)

* Implement Ctrl+S or Command+S for save draft

* rename

* add Typecho.savePost

* fix upload file size

* add new uploader

* replace new uploader

* fix textarea change

* fix preview

* refactor post edit

* fix issue

* fix page edit

---------

Co-authored-by: joyqi <joyqi@segmentfault.com>
Co-authored-by: joyqi <magike.net@gmail.com>

* fix #1632

* Add svg to image types

* Feat/tree pages (#1646)

* add tree trait

* finish category tree trait

* support select fields

* fix select fields

* refactor admin trait

* fix draft status

* Add new contents type "revision"

* minor refactor

* add more tree view abstracts

* add tree trait to pages

* get ready for tree view pages

* improve page edit

* fix revision

* fix slug

* add router params delegate

* fix params delegate

* fix

* fix

* fix all

* fix all

* fix tree

* fix page link

* fix feed

* fix page

* fix permalink

* fix permalink input

* fix offset query

* Support IDN (#1629)

* Support IDN

* use js

* Optimize code

* Optimize code

* fix URL script

* remove unnecessary use

---------

Co-authored-by: joyqi <joyqi@segmentfault.com>

* fix input element

* fix #1651, close #1653

* Use json instead of serialize (#1624)

* Use json instead of serialize

* Fix Upgrade code

* add tree trait

* finish category tree trait

* support select fields

* fix select fields

* refactor admin trait

* fix draft status

* Add new contents type "revision"

* minor refactor

* add more tree view abstracts

* add tree trait to pages

* get ready for tree view pages

* improve page edit

* fix revision

* fix slug

* add router params delegate

* fix params delegate

* fix

* fix

* fix all

* fix all

* fix tree

* fix page link

* fix feed

* fix page

* fix permalink

* fix permalink input

* fix offset query

* Fix typo

* remove proxy methods

* remove unnecessary useage

---------

Co-authored-by: joyqi <joyqi@segmentfault.com>
Co-authored-by: joyqi <magike.net@gmail.com>

* Fix Prevent XSS vulnerability in default theme (#1654)

* Fix Prevent XSS vulnerability in default theme

* Update var/Typecho/Db/Adapter/Pdo.php

* fix the getter

---------

Co-authored-by: joyqi <joyqi@segmentfault.com>

* add throwCallback to widget response

* fix: cut down fields when selecting recent posts

* fix typo errors

* fix typo errors

* fix http client cookie

* add throw finish

* fix theme lang

* fix default theme

* fix query

* add open graph and twitter card support
add canonical link

* fix canonical link meta

* fix theme classic-22

* remove unnecessary scss file when packaging

* init plugin signal

* improve: remove feather-icon js file

* fix: typo

* improve: post detail layout

* fix tags saving

* improve: nav search

* fix: theme screenshot

* fix: theme page layout

* remove php 7.2/7.3 env

---------

Co-authored-by: fen <f3nb0x@gmail.com>
Co-authored-by: Lu Fei <52o@qq52o.cn>
2023-12-30 23:02:25 +08:00
joyqi 99212ec787 fix #1635 (#1636) 2023-10-03 11:14:04 +08:00
沈唁 daef17d7eb Support ssl for pdo_mysql and mysqli (#1525)
* Support ssl for pdo_mysql and mysqli

* Improve config name for mysql ssl mode, and fix some minor bugs.

* Fix typo

---------

Co-authored-by: joyqi <joyqi@segmentfault.com>
2023-03-29 14:33:23 +08:00
沈唁 4be93f2741 Fix missing mysqli_connect_errno (#1346) 2022-03-28 12:11:24 +08:00
joyqi 75899e287d fix #1268 2022-01-28 23:58:31 +08:00
joyqi 9c075dcdf0 fix #1279 2022-01-13 14:04:58 +08:00
joyqi 157fc05265 fix #1268 2021-12-13 11:58:35 +08:00
joyqi c047669900 fix #1257 2021-12-06 22:09:17 +08:00
joyqi c66b6e20ec fix #1187 2021-10-21 11:10:34 +08:00
joyqi d839f390ee fix #1163, fix #1164 2021-09-10 11:26:04 +08:00
joyqi 96eb56fc35 fix #1154 2021-09-08 21:47:54 +08:00
joyqi 6123f3ae62 fix sandbox 2021-09-05 10:47:29 +08:00
joyqi 926ec3e117 fix bug 2021-08-24 18:47:21 +08:00
joyqi 38184ba5ba fix pgsql 2021-08-24 02:04:55 +08:00
joyqi c422952c89 fix pgsql 2021-08-24 01:30:05 +08:00
joyqi 75672fe259 fix all 2021-08-23 18:43:32 +08:00
joyqi 954e710013 remove func_get_args 2021-08-18 23:16:08 +08:00
joyqi 3d0b5d5f6c reformat code 2021-08-18 22:29:34 +08:00
joyqi 2731e34db0 fix install 2021-08-17 18:36:54 +08:00
joyqi 3413dfd7ce fix #954 2020-05-12 16:21:59 +08:00
joyqi 02dd3f997f fix #710 2018-01-29 18:40:43 +08:00
joyqi 4a5f1aece1 fix #652
fix #612
2017-11-09 12:44:36 +08:00
joyqi 93bcd46d55 fix #635
fix #634
fix #633
2017-10-30 02:19:53 +08:00
joyqi f3a28f38e2 add method to get query params 2017-08-22 01:29:44 +08:00
joyqi 949b487445 fix query error 2017-08-21 11:49:36 +08:00
joyqi d953e32003 add delay binding
fix #601
2017-08-21 11:43:10 +08:00
zhoucheng 694a22a295 fix: Mysqli quoteColumn 函数参数调用错误 2017-02-25 22:30:37 +08:00
joyqi e25022ecc1 fix install issue
add Dockerfile
2016-12-22 18:54:28 +08:00
skys215 37ab647895 Mysql->Mysqli 2016-03-20 21:00:30 +08:00
skys215 0464ad729c Added support for MySQLi 2016-03-20 12:50:28 +00:00
祁宁 4fc76a4dc3 remove commonmark 2014-10-16 15:49:52 +08:00
祁宁 80de4900df fix #289
修正由于转义引号导致的在sqlite下查询失败错误
修正由于部分主机没有安装mb插件导致无法输出markdown文本的错误

fix #288

给expression增加参数$escape来控制是否转义语句
2014-10-09 22:19:22 +08:00
祁宁 7b95093dc5 fix #288 2014-10-09 14:14:28 +08:00
祁宁 99819643dd fix #249
fix #250
2014-05-27 10:44:14 +08:00
祁宁 df63e19190 add default query setting method 2014-04-20 20:29:02 +08:00
祁宁 0d30d33aa3 修正泄露路径的漏洞 2014-03-10 21:05:20 +08:00
joyqi 4cd7184b5b 修正分类归档计数错误 2014-02-25 11:58:20 +08:00
joyqi bb331ec8a5 修正子分类的一系列问题 2014-02-25 10:54:50 +08:00
joyqi a2090a3250 Merge pull request #181 from loftor-git/master
增加HAVING语句方法
2014-02-12 17:58:34 +08:00
joyqi c056ba70fa fix #188
去掉所有不必要的require_once
2014-02-12 17:51:47 +08:00
Loftor 7c1ff3029b 增加HAVING语句方法 2014-01-22 14:30:40 +08:00
joyqi a0cb9d64f6 增加GAE支持 2013-10-18 11:54:19 +08:00
joyqi 55379c90df 初始化
修改了上一个版本的一些错误,第一次提交
2013-07-17 13:13:57 +08:00