[fw-general] Re: template names with dots in name aren't possible after Update to ZF2 2.2

2013-05-20 Thread Bart van der Linden
I have the same problem after upgrading to ZF2.2And I can trace it back to
the Zend\View\Resolver\TemplatePathStack::resolve method.In 2.1.5 resolve on
line 299 tests for: if (pathinfo($name, PATHINFO_EXTENSION) !=
$defaultSuffix)in 2.2.0 this is changed to on line 302if
(pathinfo($name, PATHINFO_EXTENSION) == '')So with a dot in the name no
defaultSuffix will be appended.



--
View this message in context: 
http://zend-framework-community.634137.n4.nabble.com/template-names-with-dots-in-name-aren-t-possible-after-Update-to-ZF2-2-2-tp4660031p4660074.html
Sent from the Zend Framework mailing list archive at Nabble.com.

[fw-general] Re: [ZF2] Disable layout for 404 error page

2012-10-24 Thread Bart van der Linden
You can also set the layout in the 404 script. This could be a save layout
with no calls to the url-viewhelper or other helpers that rely on
RouteMatch.

First line of your 404-script:
layout()->setTemplate('layout/error'); ?>




--
View this message in context: 
http://zend-framework-community.634137.n4.nabble.com/ZF2-Disable-layout-for-404-error-page-tp4657694p4657765.html
Sent from the Zend Framework mailing list archive at Nabble.com.

-- 
List: fw-general@lists.zend.com
Info: http://framework.zend.com/archives
Unsubscribe: fw-general-unsubscr...@lists.zend.com




[fw-general] ZF2 escapeHtml double encodes html entities

2012-09-10 Thread Bart van der Linden
The current ZF2 escaper will double encode html entities so you can't use
  © € in strings you call escapeHtml on.

Futhermore Owasp warns for double encoding (see
https://www.owasp.org/index.php/Category:Encoding)

Any suggestions?

Thanks,

Bart.



--
View this message in context: 
http://zend-framework-community.634137.n4.nabble.com/ZF2-escapeHtml-double-encodes-html-entities-tp4656772.html
Sent from the Zend Framework mailing list archive at Nabble.com.

-- 
List: fw-general@lists.zend.com
Info: http://framework.zend.com/archives
Unsubscribe: fw-general-unsubscr...@lists.zend.com