@@ -33,7 +33,7 @@ public function all(array $params = array())
33
33
*/
34
34
public function allInRepository ($ username , $ repository , array $ params = array ())
35
35
{
36
- return $ this ->get ('repos/ ' .urlencode ($ username ).'/ ' .urlencode ($ repository ).'/notifications ' , $ params );
36
+ return $ this ->get ('repos/ ' .rawurlencode ($ username ).'/ ' .rawurlencode ($ repository ).'/notifications ' , $ params );
37
37
}
38
38
39
39
/**
@@ -57,7 +57,7 @@ public function markAsReadAll(array $params = array())
57
57
*/
58
58
public function markAsReadInRepository ($ username , $ repository , array $ params = array ())
59
59
{
60
- return $ this ->put ('repos/ ' .urlencode ($ username ).'/ ' .urlencode ($ repository ).'/notifications ' , $ params );
60
+ return $ this ->put ('repos/ ' .rawurlencode ($ username ).'/ ' .rawurlencode ($ repository ).'/notifications ' , $ params );
61
61
}
62
62
63
63
/**
@@ -69,7 +69,7 @@ public function markAsReadInRepository($username, $repository, array $params = a
69
69
*/
70
70
public function markAsRead ($ id , array $ params )
71
71
{
72
- return $ this ->patch ('notifications/threads/ ' .urlencode ($ id ), $ params );
72
+ return $ this ->patch ('notifications/threads/ ' .rawurlencode ($ id ), $ params );
73
73
}
74
74
75
75
/**
@@ -80,7 +80,7 @@ public function markAsRead($id, array $params)
80
80
*/
81
81
public function show ($ id )
82
82
{
83
- return $ this ->get ('notifications/threads/ ' .urlencode ($ id ));
83
+ return $ this ->get ('notifications/threads/ ' .rawurlencode ($ id ));
84
84
}
85
85
86
86
/**
@@ -91,7 +91,7 @@ public function show($id)
91
91
*/
92
92
public function showSubscription ($ id )
93
93
{
94
- return $ this ->get ('notifications/threads/ ' .urlencode ($ id ).'/subscription ' );
94
+ return $ this ->get ('notifications/threads/ ' .rawurlencode ($ id ).'/subscription ' );
95
95
}
96
96
97
97
/**
@@ -103,7 +103,7 @@ public function showSubscription($id)
103
103
*/
104
104
public function createSubscription ($ id , array $ params )
105
105
{
106
- return $ this ->put ('notifications/threads/ ' .urlencode ($ id ).'/subscription ' , $ params );
106
+ return $ this ->put ('notifications/threads/ ' .rawurlencode ($ id ).'/subscription ' , $ params );
107
107
}
108
108
109
109
/**
@@ -114,6 +114,6 @@ public function createSubscription($id, array $params)
114
114
*/
115
115
public function removeSubscription ($ id )
116
116
{
117
- return $ this ->delete ('notifications/threads/ ' .urlencode ($ id ).'/subscription ' );
117
+ return $ this ->delete ('notifications/threads/ ' .rawurlencode ($ id ).'/subscription ' );
118
118
}
119
119
}
0 commit comments