Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 10b3eac

Browse files
committed
[Bug #486527] Note that the caller has to ensure there are no control
characters in strings being passed via XML-RPC. Fix some typos. 2.2.1 bugfix candidate.
1 parent 566c0c7 commit 10b3eac

1 file changed

Lines changed: 12 additions & 2 deletions

File tree

Doc/lib/libxmlrpclib.tex

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,16 @@ \section{\module{xmlrpclib} --- XML-RPC client access}
5959
may also raise a special \exception{Fault} instance, used to signal
6060
XML-RPC server errors, or \exception{ProtocolError} used to signal an
6161
error in the HTTP/HTTPS transport layer.
62+
63+
When passing strings, characters special to XML such as \samp{<},
64+
\samp{>}, and \samp{\&} will be automatically escaped. However, it's
65+
the caller's responsibility to ensure that the string is free of
66+
characters that aren't allowed in XML, such as the control characters
67+
with ASCII values between 0 and 31; failing to do this will result in
68+
an XML-RPC request that isn't well-formed XML. If you have to pass
69+
arbitrary strings via XML-RPC, use the \class{Binary} wrapper class
70+
described below.
71+
6272
\end{classdesc}
6373

6474

@@ -200,15 +210,15 @@ \subsection{ProtocolError Objects \label{protocol-error-objects}}
200210
members:
201211

202212
\begin{memberdesc}{url}
203-
The URI or URL that triggered te error.
213+
The URI or URL that triggered the error.
204214
\end{memberdesc}
205215

206216
\begin{memberdesc}{errcode}
207217
The error code.
208218
\end{memberdesc}
209219

210220
\begin{memberdesc}{errmsg}
211-
The eror message of diagnostic string.
221+
The error message or diagnostic string.
212222
\end{memberdesc}
213223

214224
\begin{memberdesc}{headers}

0 commit comments

Comments
 (0)