add one missing html escape call to a demo file
authorgggeek <giunta.gaetano@gmail.com>
Fri, 25 Nov 2022 11:06:02 +0000 (11:06 +0000)
committergggeek <giunta.gaetano@gmail.com>
Fri, 25 Nov 2022 11:06:02 +0000 (11:06 +0000)
demo/client/introspect.php

index 1c74ee6..b4a0dca 100644 (file)
@@ -31,7 +31,7 @@ if ($resp->faultCode()) {
 
     // Then, retrieve the signature and help text of each available method
     foreach ($v as $methodName) {
-        output("<h4>" . $methodName->scalarval() . "</h4>\n");
+        output("<h4>" . htmlspecialchars($methodName->scalarval()) . "</h4>\n");
         // build messages first, add params later
         $m1 = new PhpXmlRpc\Request('system.methodHelp');
         $m2 = new PhpXmlRpc\Request('system.methodSignature');