Announcement

Symphony's issue tracker has been moved to Github.

Issues are displayed here for reference only and cannot be created or edited.

Browse

Closed#433: Static XML datasource strips `$` from content

Try adding this as the XML:

<test>$a</test>

After saving the result:

<test></test>

I think the problem is due to double quotes:

$result = "<test>$a</test>";

Inside content.blueprintsdatasources.php I’ve replaced line #1026 (Symphony 2.1.2):

'$result = "%s";',

with:

'$result = \'%s\';',

It works but I bet there are smarter ways to fix that. ;)

Works for me, essentially passing it as a literal will stop this bug, so added in this commit

You can simplify it if you want.

$value = sprintf("\$result = '%s';", addslashes(trim($fields['static_xml'])));

This issue is closed.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details