Skip to content

Commit 8b365a3

Browse files
committed
added rawurlencode for $name
1 parent ce974e1 commit 8b365a3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Github/Api/Environment.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public function all($username, $repository, array $params = [])
3636
*/
3737
public function show($username, $repository, $name)
3838
{
39-
return $this->get('/repos/'.rawurlencode($username).'/'.rawurlencode($repository).'/environments/'.$name);
39+
return $this->get('/repos/'.rawurlencode($username).'/'.rawurlencode($repository).'/environments/'.rawurlencode($name));
4040
}
4141

4242
/**
@@ -65,6 +65,6 @@ public function createOrUpdate($username, $repository, $name, array $params = []
6565
*/
6666
public function remove(string $username, string $repository, string $name)
6767
{
68-
return $this->delete('/repos/'.rawurlencode($username).'/'.rawurlencode($repository).'/environments/'.$name);
68+
return $this->delete('/repos/'.rawurlencode($username).'/'.rawurlencode($repository).'/environments/'.rawurlencode($name));
6969
}
7070
}

0 commit comments

Comments
 (0)