Commit 6b4aedb
committed
[!!!][TASK] Avoid obsolete $charset in sanitizeFileName()
DriverInterface:
public function sanitizeFileName(string $fileName, string $charset = ''): string;
LocalDriver implementation:
public function sanitizeFileName(string $fileName, string $charset = 'utf-8'): string
All consumers (mainly ResourceStorage) call the method without
handing over the second argument. The uselessness of the second
argument has been stated in an @todo for a while already. The
patch drops the second argument in interface and implementation.
Resolves: #105686
Releases: main
Change-Id: I1585792f69e05e75c4f22f4e67599b2d322bb288
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/87212
Tested-by: Christian Kuhn <[email protected]>
Reviewed-by: Simon Praetorius <[email protected]>
Reviewed-by: Christian Kuhn <[email protected]>
Tested-by: core-ci <[email protected]>
Tested-by: Simon Praetorius <[email protected]>
Tested-by: Andreas Nedbal <[email protected]>
Reviewed-by: Andreas Nedbal <[email protected]>1 parent 9abb07f commit 6b4aedb
File tree
6 files changed
+62
-61
lines changed- Classes/Resource/Driver
- Documentation/Changelog/14.0
- Tests
- Functional/Resource/Driver
- Unit/Resource/Driver/Fixtures
6 files changed
+62
-61
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
77 | | - | |
78 | 76 | | |
79 | 77 | | |
80 | | - | |
| 78 | + | |
81 | 79 | | |
82 | 80 | | |
83 | 81 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
306 | 306 | | |
307 | 307 | | |
308 | 308 | | |
309 | | - | |
310 | 309 | | |
311 | | - | |
312 | 310 | | |
313 | | - | |
| 311 | + | |
314 | 312 | | |
315 | | - | |
316 | | - | |
317 | | - | |
318 | | - | |
| 313 | + | |
319 | 314 | | |
320 | 315 | | |
321 | 316 | | |
322 | 317 | | |
323 | 318 | | |
324 | | - | |
| 319 | + | |
325 | 320 | | |
326 | 321 | | |
327 | 322 | | |
328 | 323 | | |
329 | 324 | | |
330 | 325 | | |
331 | | - | |
332 | | - | |
333 | | - | |
334 | | - | |
| 326 | + | |
335 | 327 | | |
336 | 328 | | |
337 | 329 | | |
| |||
Lines changed: 53 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1104 | 1104 | | |
1105 | 1105 | | |
1106 | 1106 | | |
1107 | | - | |
1108 | 1107 | | |
1109 | 1108 | | |
1110 | 1109 | | |
1111 | 1110 | | |
1112 | | - | |
1113 | | - | |
1114 | | - | |
1115 | | - | |
1116 | | - | |
1117 | 1111 | | |
1118 | 1112 | | |
1119 | 1113 | | |
| |||
1134 | 1128 | | |
1135 | 1129 | | |
1136 | 1130 | | |
1137 | | - | |
1138 | | - | |
1139 | | - | |
1140 | | - | |
1141 | | - | |
1142 | | - | |
1143 | 1131 | | |
1144 | 1132 | | |
1145 | 1133 | | |
1146 | | - | |
1147 | 1134 | | |
1148 | 1135 | | |
1149 | 1136 | | |
1150 | | - | |
1151 | | - | |
1152 | | - | |
1153 | | - | |
1154 | | - | |
1155 | | - | |
1156 | 1137 | | |
1157 | 1138 | | |
1158 | | - | |
1159 | 1139 | | |
1160 | 1140 | | |
1161 | | - | |
1162 | | - | |
1163 | | - | |
1164 | | - | |
1165 | | - | |
1166 | | - | |
1167 | | - | |
1168 | 1141 | | |
1169 | 1142 | | |
1170 | 1143 | | |
1171 | | - | |
1172 | 1144 | | |
1173 | 1145 | | |
1174 | 1146 | | |
1175 | 1147 | | |
1176 | | - | |
1177 | 1148 | | |
1178 | 1149 | | |
1179 | 1150 | | |
1180 | 1151 | | |
1181 | | - | |
1182 | 1152 | | |
1183 | 1153 | | |
1184 | | - | |
1185 | | - | |
1186 | | - | |
1187 | | - | |
1188 | | - | |
1189 | 1154 | | |
1190 | 1155 | | |
1191 | | - | |
1192 | | - | |
1193 | | - | |
1194 | | - | |
1195 | | - | |
1196 | | - | |
1197 | 1156 | | |
1198 | 1157 | | |
1199 | 1158 | | |
1200 | 1159 | | |
1201 | | - | |
1202 | 1160 | | |
1203 | 1161 | | |
1204 | 1162 | | |
1205 | 1163 | | |
1206 | 1164 | | |
1207 | 1165 | | |
1208 | 1166 | | |
1209 | | - | |
| 1167 | + | |
1210 | 1168 | | |
1211 | 1169 | | |
1212 | 1170 | | |
1213 | | - | |
| 1171 | + | |
1214 | 1172 | | |
1215 | 1173 | | |
1216 | 1174 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
| 58 | + | |
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
| 57 | + | |
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| |||
0 commit comments