1
0
mirror of synced 2025-01-31 20:41:44 +03:00

Adding note about DDC-3020 - external XML entities may or may not work

This commit is contained in:
Marco Pivetta 2014-03-11 11:30:08 +01:00
parent 87505c8716
commit fea200043e

View File

@ -44,8 +44,6 @@ In order to work, this requires certain conventions:
convention and you are not forced to do this. You can change the
file extension easily enough.
-
.. code-block:: php
<?php
@ -64,6 +62,16 @@ of the constructor, like this:
$driver = new \Doctrine\ORM\Mapping\Driver\XmlDriver(array('/path/to/files1', '/path/to/files2'));
$config->setMetadataDriverImpl($driver);
.. warning::
Note that Doctrine ORM does not modify any settings for ``libxml``,
therefore, external XML entities may or may not be enabled or
configured correctly.
XML mappings are not XXE/XEE attack vectors since they are not
related with user input, but it is recommended that you do not
use external XML entities in your mapping files to avoid running
into unexpected behaviour.
Simplified XML Driver
~~~~~~~~~~~~~~~~~~~~~