#5793: PaginatorHelper escaping $disabledTitle
-----------------------------------+----------------------------------------
Reporter: [EMAIL PROTECTED] | Type: Bug
Status: new | Priority: Medium
Milestone: 1.2.x.x | Component: Helpers
Version: RC2 | Severity: Normal
Keywords: escape paginator | Php_version: n/a
Cake_version: |
-----------------------------------+----------------------------------------
When using the '''PaginatorHelper''' class to create a link with the
{{{prev()}}} or {{{next()}}} methods, while the '''escape''' option is
followed for the case of {{{$title}}}, it is ignored for
{{{$disabledTitle}}} (the third argument to next and prev). This can be
reproduced easily:
put this in a paged view
{{{
$paginator->prev('<b>prev</b>', array('escape'=>false), '<b>prev</b>');
}}}
On the first page, the $disabledTitle will be escaped, but on the second
page, it will not be escaped. The titles should follow the escape option
whether enabled or disabled.
Fix: Line 321 of /cake/libs/view/helpers/paginator.php function
pagingLink()
I believe this line should use the {{{$options['escape']}}} value,
possibly merged with {{{$escape}}} (although I don't see where $escape is
defined).
--
Ticket URL: <https://trac.cakephp.org/ticket/5793>
CakePHP : The Rapid Development Framework for PHP <https://trac.cakephp.org/>
Cake is a rapid development framework for PHP which uses commonly known design
patterns like ActiveRecord, Association Data Mapping, Front Controller and MVC.
Our primary goal is to provide a structured framework that enables PHP users at
all levels to rapidly develop robust web applications, without any loss to
flexibility.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"tickets cakephp" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/tickets-cakephp?hl=en
-~----------~----~----~----~------~----~------~--~---