[CakePHP : The Rapid Development Framework for PHP] #5757: Calling unique action render from within view only works once

2008-11-15 Thread CakePHP : The Rapid Development Framework for PHP
#5757: Calling unique action render from within view only works once
+---
Reporter:  nytoboston01 |  Type:  Bug
  Status:  new  |  Priority:  High   
   Milestone:  1.2.x.x  | Component:  General
 Version:  RC2  |  Severity:  Normal 
Keywords:  view render hsaRendered  |   Php_version:  n/a
Cake_version:   |  
+---
 Calling $this-render multiple times (with unique actions) in the same
 view only works once.

 Example:
 ?php
print $this-render('/users/login', 'ajax');
print $this-render('/users/start_shift', 'ajax');
print $this-render('/users/end_shift', 'ajax');
 ?

 Expected result:
 users_login_content/users_start_shift_content/users_end_shift_content/

 Actual results:
 users_login_content/11

 The reason for the trailing 1's (true's) is that view:render punts on the
 conditional $this-hasRendered.

 $this-hasRendered should only be set true for *unique* actions. This
 would allow multiple unique actions to be rendered within a single view.

 Attached is a patch. It is probably slightly outta whack, but you'll get
 the idea.

-- 
Ticket URL: https://trac.cakephp.org/ticket/5757
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 tickets-cakephp@googlegroups.com
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
-~--~~~~--~~--~--~---



Re: [CakePHP : The Rapid Development Framework for PHP] #5757: Calling unique action render from within view only works once

2008-11-15 Thread CakePHP : The Rapid Development Framework for PHP
#5757: Calling unique action render from within view only works once
+---
Reporter:  nytoboston01 | Owner: 
Type:  Bug  |Status:  closed 
Priority:  High | Milestone:  1.2.x.x
   Component:  General  |   Version:  RC2
Severity:  Normal   |Resolution:  invalid
Keywords:  view render hsaRendered  |   Php_version:  n/a
Cake_version:   |  
+---
Changes (by nate):

  * status:  new = closed
  * resolution:  = invalid

Comment:

 This is by design. Only one view is ever supposed to be rendered unless
 you are using requestAction. If you have a genuinely non-standard use
 case, you can reset hasRendered manually.

-- 
Ticket URL: https://trac.cakephp.org/ticket/5757#comment:1
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 tickets-cakephp@googlegroups.com
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
-~--~~~~--~~--~--~---



Re: [CakePHP : The Rapid Development Framework for PHP] #5751: Ampersand bug in $this-params['pass'] and $this-params['url']

2008-11-15 Thread CakePHP : The Rapid Development Framework for PHP
#5751: Ampersand bug in $this-params['pass'] and $this-params['url']
---+
Reporter:  xbuzz   | Owner:  
Type:  Bug |Status:  reopened
Priority:  High| Milestone:  
   Component:  General |   Version:  RC3 
Severity:  Normal  |Resolution:  
Keywords:  |   Php_version:  PHP 5   
Cake_version:  1.2.0.7692 RC3  |  
---+
Changes (by xbuzz):

  * status:  closed = reopened
  * resolution:  invalid =

Comment:

 Nate, I understand that the string needs to be encoded.  The problem is
 that if you use urlencode() the ampersand loses it's encoding prior to
 being handled by the application.  Please take another look at this
 example.

 URL: http://localhost/test/view/This%20%26%20That/Other

 {{{
 class ExampleController extends AppController {
 var $name = 'Example';
 var $uses = array();

 function view($category, $category2) {
 //
 http://shop.lycoz.com/example/view/This%20%26%20That/Other
 pr($this-params);
 die;
 }
 }
 }}}

 Output:

 Note: $this-params['pass'] is broken and $this-params['url'] is broken.

 {{{
 Array
 (
 [pass] = Array
 (
 [0] = This
 )

 [named] = Array
 (
 )

 [controller] = example
 [action] = view
 [plugin] =
 [form] = Array
 (
 )

 [url] = Array
 (
 [url] = example/view/This
 [That/Other] =
 )

 )
 }}}

 Notice if you remove the ampersand (%26) it works fine.

 Array
 (
 [pass] = Array
 (
 [0] = This and That
 [1] = Other
 )

 [named] = Array
 (
 )

 [controller] = example
 [action] = view
 [plugin] =
 [form] = Array
 (
 )

 [url] = Array
 (
 [url] = example/view/This That/Other
 )

 )

-- 
Ticket URL: https://trac.cakephp.org/ticket/5751#comment:3
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 tickets-cakephp@googlegroups.com
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
-~--~~~~--~~--~--~---



Re: [CakePHP : The Rapid Development Framework for PHP] #5758: Sanitize::stripTags broken

2008-11-15 Thread CakePHP : The Rapid Development Framework for PHP
#5758: Sanitize::stripTags broken
--+-
Reporter:  JadB   | Owner: 
Type:  Bug|Status:  new
Priority:  High   | Milestone:  1.2.x.x
   Component:  Core Libs  |   Version:  RC3
Severity:  Normal |Resolution: 
Keywords: |   Php_version:  n/a
Cake_version: |  
--+-
Comment (by JadB):

 Temporary fix:

 {{{
 @@ -164,7 +164,8 @@
 $str = $params[0];

 for ($i = 1; $i  count($params); $i++) {
 -   $str = preg_replace('/' . $params[$i] .
 '[^]*/i', '', $str);
 +  $str = preg_replace('/' . $params[$i] . '/i', '',
 $str);
 +   $str = preg_replace('/' . $params[$i] . '
 [^]*/i', '', $str);
 $str = preg_replace('/\/' . $params[$i] .
 '[^]*/i', '', $str);
 }
 return $str;

 }}}

-- 
Ticket URL: https://trac.cakephp.org/ticket/5758#comment:1
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 tickets-cakephp@googlegroups.com
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
-~--~~~~--~~--~--~---



Re: [CakePHP : The Rapid Development Framework for PHP] #5758: Sanitize::stripTags broken

2008-11-15 Thread CakePHP : The Rapid Development Framework for PHP
#5758: Sanitize::stripTags broken
--+-
Reporter:  JadB   | Owner:  mark_story
Type:  Bug|Status:  assigned  
Priority:  Medium | Milestone:  1.2.x.x   
   Component:  Core Libs  |   Version:  RC3   
Severity:  Normal |Resolution:
Keywords: |   Php_version:  n/a   
Cake_version: |  
--+-
Changes (by mark_story):

  * priority:  High = Medium

Comment:

 Your patch doesn't solve the issue.  A test case would have been more
 helpful in this circumstance.

-- 
Ticket URL: https://trac.cakephp.org/ticket/5758#comment:3
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 tickets-cakephp@googlegroups.com
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
-~--~~~~--~~--~--~---