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

Search

When I create a data source with a URL that takes some parameters, sometimes it gets replaces for HTML symbols like http://site.com/param1=test&section=2 gets replaces for http://site.com/param1=test§ion=2 so "&sect" gets replaced for a "§" It happens for $this->dsParamURL in datasource.dynamic_xml.php How can I prevent that from happening?

Thank you,

maybe you can try replace the & with &

Strange, in class.gateway.php it prints out the correct URL, but in datasource debugger it gives Status code 400 was returned. Content-type: text/xml.

"&sect" gets replaced for a "§"

This is a browser issue that affects the Debug Devkit when you debug the page, but not the underlying request itself. For some reason &sect is interpreted the same as § which is a "section" character.

I recall reporting this bug before, but I can't find reference to it. I believe it was not pursued because it was an edge case browser bug that didn't affect Symphony itself, just a small error in the debug rendering in the browser.

but in datasource debugger it gives Status code 400 was returned

In which case this is a separate problem to the § character. What is the exact URL that is made in the gateway request? Can you load it in your browser and get XML fine? Do you need to be authenticated to make the request?

I got around this issue by just placing section right after the ? in the request. The request that makes to the gateway is exactly the same that returns good xml from the browser (the authentication is provided via one of the request parameters). It does look like a browser issue since it happens with Chrome and doesn't happen with IE. I also had some problems completing the request in gateway till I figured out that php5-curl wasn't installed on the server and it fell back on default socket mechanism which failed to fulfill the request. With php curl it works fine.

Thank you,

Create an account or sign in to comment.

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