]> git.pld-linux.org Git - packages/eventum.git/blob - eventum-cli-rpc-base64.patch
- show message queued date in localtime according to user preferrence
[packages/eventum.git] / eventum-cli-rpc-base64.patch
1 this patch fixes problem transferring non-ASCII data over xmlrpc.
2 the 8bit chars could be anywhere, issue summary, details, reporter, so all fields are base64_encoded
3
4 --- ./misc/cli/include/class.command_line.php~  2005-03-05 13:13:13.000000000 +0200
5 +++ ./misc/cli/include/class.command_line.php   2005-03-07 20:46:16.398657838 +0200
6 @@ -439,6 +439,11 @@
7              Command_Line::quit($result->faultString());
8          }
9          $details = XML_RPC_decode($result->value());
10 +
11 +        foreach ($details as $k => $v) {
12 +            $details[$k] = base64_decode($v);
13 +        }
14 +
15          // check if the issue the user is trying to change is inside a project viewable to him
16          $found = 0;
17          for ($i = 0; $i < count($projects); $i++) {
18 @@ -447,6 +452,7 @@
19                  break;
20              }
21          }
22 +
23          if (!$found) {
24              Command_Line::quit("The assigned project for issue #$issue_id doesn't match any in the list of projects assigned to you");
25          }
26 --- ./rpc/xmlrpc.php~   2005-02-27 17:59:14.000000000 +0200
27 +++ ./rpc/xmlrpc.php    2005-03-07 20:48:19.000000000 +0200
28 @@ -194,6 +196,10 @@
29      createFakeCookie($email, Issue::getProjectID($issue_id));
30      
31      $res = Issue::getDetails($issue_id);
32 +    foreach ($res as $k => $v) {
33 +        $res[$k] = base64_encode($v);
34 +    }
35 +
36      if (empty($res)) {
37          return new XML_RPC_Response(0, $XML_RPC_erruser+1, "Issue #$issue_id could not be found");
38      } else {
This page took 0.054441 seconds and 3 git commands to generate.