@@ -33,7 +33,7 @@ public function all(array $params = array())
3333 */
3434 public function allInRepository ($ username , $ repository , array $ params = array ())
3535 {
36- return $ this ->get ('repos/ ' .urlencode ($ username ).'/ ' .urlencode ($ repository ).'/notifications ' , $ params );
36+ return $ this ->get ('repos/ ' .rawurlencode ($ username ).'/ ' .rawurlencode ($ repository ).'/notifications ' , $ params );
3737 }
3838
3939 /**
@@ -57,7 +57,7 @@ public function markAsReadAll(array $params = array())
5757 */
5858 public function markAsReadInRepository ($ username , $ repository , array $ params = array ())
5959 {
60- return $ this ->put ('repos/ ' .urlencode ($ username ).'/ ' .urlencode ($ repository ).'/notifications ' , $ params );
60+ return $ this ->put ('repos/ ' .rawurlencode ($ username ).'/ ' .rawurlencode ($ repository ).'/notifications ' , $ params );
6161 }
6262
6363 /**
@@ -69,7 +69,7 @@ public function markAsReadInRepository($username, $repository, array $params = a
6969 */
7070 public function markAsRead ($ id , array $ params )
7171 {
72- return $ this ->patch ('notifications/threads/ ' .urlencode ($ id ), $ params );
72+ return $ this ->patch ('notifications/threads/ ' .rawurlencode ($ id ), $ params );
7373 }
7474
7575 /**
@@ -80,7 +80,7 @@ public function markAsRead($id, array $params)
8080 */
8181 public function show ($ id )
8282 {
83- return $ this ->get ('notifications/threads/ ' .urlencode ($ id ));
83+ return $ this ->get ('notifications/threads/ ' .rawurlencode ($ id ));
8484 }
8585
8686 /**
@@ -91,7 +91,7 @@ public function show($id)
9191 */
9292 public function showSubscription ($ id )
9393 {
94- return $ this ->get ('notifications/threads/ ' .urlencode ($ id ).'/subscription ' );
94+ return $ this ->get ('notifications/threads/ ' .rawurlencode ($ id ).'/subscription ' );
9595 }
9696
9797 /**
@@ -103,7 +103,7 @@ public function showSubscription($id)
103103 */
104104 public function createSubscription ($ id , array $ params )
105105 {
106- return $ this ->put ('notifications/threads/ ' .urlencode ($ id ).'/subscription ' , $ params );
106+ return $ this ->put ('notifications/threads/ ' .rawurlencode ($ id ).'/subscription ' , $ params );
107107 }
108108
109109 /**
@@ -114,6 +114,6 @@ public function createSubscription($id, array $params)
114114 */
115115 public function removeSubscription ($ id )
116116 {
117- return $ this ->delete ('notifications/threads/ ' .urlencode ($ id ).'/subscription ' );
117+ return $ this ->delete ('notifications/threads/ ' .rawurlencode ($ id ).'/subscription ' );
118118 }
119119}
0 commit comments