Commit Graph

156 Commits

Author SHA1 Message Date
Steven Qiu
761cbb7828
feat: max texture width & texture sanitize (#662)
* feat: sanitize uploaded file when user upload texture

* feat: limit max texture width to avoid png bomb

* style: apply php-cs-fixer fixes

* chore: set default value for max_texture_width option

* Update skinlib.yml

Co-authored-by: Pig Fang <g-plane@hotmail.com>

---------

Co-authored-by: Pig Fang <g-plane@hotmail.com>
2025-06-29 16:09:55 +08:00
Steven Qiu
24ad29ea99
style: apply php-cs-fixer fixes 2025-06-26 21:16:56 +08:00
Asnxthaony
b811a7ae41
BREAKING: increase PHP version requirement to 8.1.0 2023-05-30 16:43:57 +08:00
Pig Fang
eff859a864
update php-cs-fixer config & apply fixes 2023-01-16 23:15:41 +08:00
Pig Fang
1b00600c3b
BREAKING: increase PHP version requirement to 8.0.2 2021-12-12 19:20:06 +08:00
Pig Fang
efa20f4940
fix test 2021-12-12 18:13:39 +08:00
Pig Fang
4875564ee4
apply php-cs-fixer fix 2021-07-25 13:26:13 +08:00
Pig Fang
baf4921479
new player name rule: allow UTF-8 2021-07-25 13:14:08 +08:00
Pig Fang
073da66623
support toggling dark mode 2021-06-06 18:07:08 +08:00
Pig Fang
c4e292c877
fix resolving report with non-existing reporter 2021-05-04 18:32:35 +08:00
Pig Fang
b7af1ebf19
fix: check texture size for capes 2021-05-04 18:20:24 +08:00
Pig Fang
14fd06a11f
fix tests 2021-05-02 11:35:28 +08:00
Pig Fang
89bb2b4db9
reject single-layer alex texture 2021-02-13 15:19:12 +08:00
Pig Fang
eae6ff887c
remove "tymon/jwt-auth" package 2021-01-30 16:43:14 +08:00
Pig Fang
4ae6368931
run php-cs-fixer 2021-01-02 15:51:37 +08:00
Pig Fang
64f2beda02
upgrade PHP dependencies (fix #247) 2021-01-01 19:03:58 +08:00
Pig Fang
d2ffb5b9bf
fix test 2020-10-31 10:54:50 +08:00
Pig Fang
66eb658410
generate asset tags at compile time 2020-10-31 10:43:47 +08:00
Pig Fang
9bfc0e6076
don't allow to render avatar for non-skin texture 2020-10-18 12:12:28 +08:00
Pig Fang
311b0690fc
upgrade Laravel to 8 2020-10-14 11:56:34 +08:00
Pig Fang
986a64fe71
require PHP 7.4 2020-10-13 10:10:03 +08:00
Pig Fang
1d82dcb5df
require submitting email when verifying email 2020-08-31 19:48:31 +08:00
Pig Fang
8f731e9031
parsedown -> commonmark 2020-08-20 10:28:27 +08:00
Pig Fang
d75a7d3ead
fix that private texture can be used as avatar 2020-08-20 10:14:38 +08:00
Pig Fang
5b738ffe6f
refactor SkinlibController 2020-08-20 08:48:53 +08:00
Pig Fang
d10bcae197
provide better message when texture is missing 2020-08-19 18:34:17 +08:00
Pig Fang
0f791f42cc
tweak UI text 2020-08-19 17:58:31 +08:00
Pig Fang
bf860d6a68
fix that texture isn't checked if it's existed in closet
when being applied to player
2020-08-19 12:13:19 +08:00
Pig Fang
76a78e187f
fix message for private textures
doesn't match with HTTP status code
2020-08-08 09:31:31 +08:00
Pig Fang
2066987bde
refactor tests 2020-07-29 18:50:45 +08:00
Pig Fang
353db6f250
fix previews and avatars cannot be indivdually cached
by image format

fix #212
2020-07-29 18:38:21 +08:00
Pig Fang
f607ba8a41
add API of fetching avatar and preview by texture hash 2020-07-29 10:57:53 +08:00
Pig Fang
b5a1f2ffc2
fix duplication of private textures (fix #194) 2020-07-20 23:08:28 +08:00
Pig Fang
c8af8ccd3e
update route of notifications 2020-06-30 09:28:22 +08:00
Pig Fang
db74a9c051
remove unnecessary code 2020-06-30 09:27:40 +08:00
Pig Fang
d4e482abb7
tweak URL of user avatar 2020-06-28 22:43:41 +08:00
Pig Fang
ffef98ad2e refactor update 2020-06-24 10:49:53 +08:00
Pig Fang
94a28806e1 refactor 2020-06-22 10:17:08 +08:00
Pig Fang
5a42f3c44d fix name of email "from" not recognized
(close #187)
2020-06-21 18:57:48 +08:00
Pig Fang
ef7dfd2a71 extract "disable-registration" as plugin 2020-06-19 19:05:51 +08:00
Pig Fang
f4161d8fc5 add missing route
close bs-community/blessing-skin-plugins#59
2020-06-16 10:03:28 +08:00
Pig Fang
6568ed311d tweak routes of i18n management 2020-06-16 09:50:30 +08:00
Pig Fang
aeb8a0800c extract oauth client as plugin 2020-06-07 23:38:08 +08:00
Pig Fang
1e85794256 add UI rows for auth pages 2020-06-07 18:54:52 +08:00
Pig Fang
88e3ed7a07 add more events for ClosetManagementController 2020-06-07 10:54:26 +08:00
Pig Fang
0053df977a update tests 2020-06-07 10:25:09 +08:00
Pig Fang
73c529c152 add more events and filters for SkinlibController 2020-06-07 10:11:35 +08:00
Pig Fang
78f6c6c286 clean up 2020-06-05 23:42:12 +08:00
Pig Fang
946896117a refactor SkinlibController 2020-06-05 23:35:49 +08:00
Pig Fang
9141af2a70 refactor fetching texture info 2020-06-04 18:12:58 +08:00