Skip to content

Commit e964229

Browse files
lucaswerkmeisterjenkins-bot
authored andcommitted
CSVUnitStorage: Change escape to future default of ""
PHP plans to change the default value of this parameter from "\\" to "", as the old default apparently has problems. CSV unit files only contain item IDs (Q[1-9][0-9]*) and floats anyways, so there should be no need for any escaping, and we might as well use the upcoming default already. Bug: T386113 Change-Id: I7d00ba49bb567caab1a58753995424d551441cf7 Follows-Up: I7c2309f348335f36870ec4dd8ed8c9e727711a59
1 parent 7515350 commit e964229

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/includes/Units/CSVUnitStorage.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ protected function loadStorageData() {
3939
return null;
4040
}
4141
$data = [];
42-
for ( $row = fgetcsv( $f, 0, ',', '"', "\\" ); $row !== false; $row = fgetcsv( $f, 0, ',', '"', "\\" ) ) {
42+
for ( $row = fgetcsv( $f, 0, ',', '"', "" ); $row !== false; $row = fgetcsv( $f, 0, ',', '"', "" ) ) {
4343
// @phan-suppress-next-line PhanTypeMismatchDimAssignment False positive
4444
$data[$row[0]] = array_slice( $row, 1 );
4545
}

0 commit comments

Comments
 (0)