#6093: [TEST][PATCH] PHP Tag in static files causes issue when loaded through
dispatcher
----------------------------------------+-----------------------------------
Reporter: mattcurry | Type: Bug
Status: new | Priority: Medium
Milestone: 1.2.x.x | Component: Core Libs
Version: 1.2 Final | Severity: Normal
Keywords: static dispatch include | Php_version: PHP 5
Cake_version: 8024 |
----------------------------------------+-----------------------------------
This is related to a bug in the
api_generator([http://thechaw.com/api_generator/tickets/view/12]).
If static asset file is loaded through the dispatcher, as is the case with
plugins, it will error out if there is a php tag ("<?") in the file.
Although that syntax may be perfectly valid, like in the case of a regular
expression (shadow.js used in api_generator).
Server settings may affect this because obviously
[http://api.cakephp.org/api_generator/js/showdown.js] is working fine.
Not sure why js and css files are using include, since it "includes and
evaluates the specified file" and there shouldn't be any need to evaluate
a static file. Attached patch uses readfile regardless of the type.
--
Ticket URL: <https://trac.cakephp.org/ticket/6093>
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
-~----------~----~----~----~------~----~------~--~---