1 users online. Create an account or sign in to join them.Users

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.2 or above
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.0 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details