X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2FHTTP%2FWebDAV%2FServer.php;fp=include%2FHTTP%2FWebDAV%2FServer.php;h=c855194d7ca612ec0ddb41cc883583cd7f566365;hb=60181dfb652fcd5856ed544bde3634fd67eb58dc;hp=3caf13facf5500b243c6bd672d2c0eae83317eda;hpb=ce9996b59ad103aca41d9ad6f3ee8edb45999557;p=diogenes.git
diff --git a/include/HTTP/WebDAV/Server.php b/include/HTTP/WebDAV/Server.php
index 3caf13f..c855194 100644
--- a/include/HTTP/WebDAV/Server.php
+++ b/include/HTTP/WebDAV/Server.php
@@ -653,7 +653,7 @@ class HTTP_WebDAV_Server
break;
default:
echo " "
- . $this->_prop_encode(htmlspecialchars($prop['val']))
+ . $this->_prop_encode(htmlspecialchars($prop['val'], ENT_COMPAT | ENT_HTML401, "ISO-8859-1"))
. "\n";
break;
}
@@ -661,11 +661,11 @@ class HTTP_WebDAV_Server
// properties from namespaces != "DAV:" or without any namespace
if ($prop["ns"]) {
echo " <" . $ns_hash[$prop["ns"]] . ":$prop[name]>"
- . $this->_prop_encode(htmlspecialchars($prop['val']))
+ . $this->_prop_encode(htmlspecialchars($prop['val'], ENT_COMPAT | ENT_HTML401, "ISO-8859-1"))
. "" . $ns_hash[$prop["ns"]] . ":$prop[name]>\n";
} else {
echo " <$prop[name] xmlns=\"\">"
- . $this->_prop_encode(htmlspecialchars($prop['val']))
+ . $this->_prop_encode(htmlspecialchars($prop['val'], ENT_COMPAT | ENT_HTML401, "ISO-8859-1"))
. "$prop[name]>\n";
}
}
@@ -748,7 +748,7 @@ class HTTP_WebDAV_Server
if ($responsedescr) {
echo " ".
- $this->_prop_encode(htmlspecialchars($responsedescr)).
+ $this->_prop_encode(htmlspecialchars($responsedescr, ENT_COMPAT | ENT_HTML401, "ISO-8859-1")).
"\n";
}