File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ All notable changes to `laravel-query-builder` will be documented in this file
88- sorts and field selects are not allowed by default
99- field aliases
1010
11- ## 1.17.2 - ** WIP **
11+ ## 1.17.2 - 2019-04-12
1212
1313- bugfix: replace missing ` sort() ` method on ` QueryBuilderRequest `
1414- bugfix: don't escape ` allowedSort ` s and their aliases
Original file line number Diff line number Diff line change @@ -37,7 +37,8 @@ public function allowedFields($fields): self
3737 public function addAllRequestedFields ()
3838 {
3939 if ($ this ->allowedFields instanceof Collection) {
40- // If we have allowed fields we will add them in the allowed fields method.
40+ // If we have allowed fields we will have parsed them in the allowed fields method.
41+
4142 return ;
4243 }
4344
@@ -72,12 +73,8 @@ protected function getFieldsForRelatedTable(string $relation): array
7273 return ColumnNameSanitizer::sanitizeArray ($ fields );
7374 }
7475
75- // TEMP: Below this point is sanitized
76-
7776 protected function getRequestedFields (): Collection
7877 {
79- // We can't sanitize here yet because the sketchy fields might be allowed.
80-
8178 return $ this ->request ->fields ();
8279 }
8380
You can’t perform that action at this time.
0 commit comments