Issue Type: Bug Created: 2008-08-11T14:49:21.000+0000 Last Updated: 2008-11-13T14:10:22.000+0000 Status: Resolved Fix version(s): - 1.7.0 (17/Nov/08)
Reporter: Cole Snodgrass (cole.snodgrass) Assignee: Jon Whitcraft (sidhighwind) Tags: - Zend_View
Related issues: Attachments: - zf3928.patch
For example, if I need to link to a javasript API that requires that I pass in more then one parameter in order to remotely load the file. I am currently unable to do this as the '&' separating the parameters will be automatically encoded to '&'
For example. $this->view->HeadScript()->appendFile('http://server/script.js?v=1.2&id=123'); will generate the following code:
In the Zend_View_Helper_HeadScript::itemToString method there should be a way to disable calling htmlspecialchars.
Posted by Jon Whitcraft (sidhighwind) on 2008-10-20T15:00:46.000+0000
This issue also affects HeadLink Helper.
Posted by Jon Whitcraft (sidhighwind) on 2008-10-22T09:01:29.000+0000
Attached is the proposed patch file.
With this file you can call your string like this:
<pre class="highlight"> $this->headScript()->setAutoEscape(true)->appendFile('test.js?id=123&foo=bar'); and $this->headStyle()->setAutoEscape(true)->appendStylesheet('/css/rules.css?id=123&foo=bar');
Posted by Jon Whitcraft (sidhighwind) on 2008-10-22T09:02:46.000+0000
the proper one for the style sheet is
<pre class="highlight"> $this->headLink()->setAutoEscape(true)->appendStylesheet('/css/rules.css?id=123&foo=bar');
Posted by Jon Whitcraft (sidhighwind) on 2008-10-23T18:06:01.000+0000
Fixed in r12106.
Posted by Wil Sinclair (wil) on 2008-11-13T14:10:22.000+0000
Changing issues in preparation for the 1.7.0 release.
Have you found an issue?
See the Overview section for more details.