Skip to content

Commit

Permalink
rawurlencode instead of decode (was mistake)
Browse files Browse the repository at this point in the history
  • Loading branch information
kg-bot committed Feb 14, 2020
1 parent 3338145 commit a502625
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Builders/Builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ public function all($filters = [] )
public function find($id, $filters = [])
{
$urlFilters = $this->parseFilters($filters);
$id = rawurldecode(rawurlencode($id));
$id = rawurlencode(rawurlencode($id));

return $this->request->handleWithExceptions(function () use ($id, $urlFilters) {

Expand Down
2 changes: 1 addition & 1 deletion src/Utils/Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ protected function setAttribute( $attribute, $value )
{
if ($attribute === $this->primaryKey) {

$this->url_friendly_id = rawurldecode(rawurldecode($value));
$this->url_friendly_id = rawurlencode(rawurlencode($value));
}

$this->{$attribute} = $value;
Expand Down

0 comments on commit a502625

Please sign in to comment.