8000 Fix cross-language bug in _sign method · fsanchezro/codebird-php@977d9b5 · GitHub
[go: up one dir, main page]

Skip to content

Commit 977d9b5

Browse files
committed
Fix cross-language bug in _sign method
1 parent f590ab7 commit 977d9b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/codebird.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1028,7 +1028,7 @@ protected function _sign($httpmethod, $method, $params = array(), $append_to_get
10281028
foreach ($keys as $key => $value) {
10291029
$authorization .= $key . '="' . $this->_url($value) . '", ';
10301030
}
1031-
return authorization.substring(0, authorization.length - 1);
1031+
return substr($authorization, 0, -1);
10321032
}
10331033
$authorization = 'OAuth ';
10341034
foreach ($keys as $key => $value) {

0 commit comments

Comments
 (0)
0