Comments (6)
Can you give a concrete example of what you're trying to do?
Original comment by [email protected]
on 28 Feb 2008 at 12:52
- Added labels: Priority-Low
- Removed labels: Priority-Medium
from minify.
Original comment by [email protected]
on 14 May 2008 at 4:25
- Changed state: WontFix
from minify.
If you have a directory structure like this:
/var/www/shared/js/myjspackage1.js
/var/www/shared/js/myjspackage2.js
/var/www/example.com/html/js/myjspackage1.js => symlink to:
/var/www/shared/js/myjspackage1.js
/var/www/otherexample.com/html/js/myjspackage1.js => symlink to:
/var/www/shared/js/myjspackage1.js
Minify won't handle the files in example.com and otherexample.com since they
are symbolic links (and it finds
that the realpath is not in the allowed path domain or something).
Original comment by [email protected]
on 14 May 2008 at 5:20
from minify.
The Groups or Files controllers with Minify 2 should be able to accept symlinks
as
long as PHP can open the target files. They do not require that the file's
realpath()
be inside $_SERVER['DOCUMENT_ROOT'].
Original comment by [email protected]
on 1 Jun 2008 at 3:53
- Changed state: NeedInfo
from minify.
Minify 2.1 would not work when my entire DOCUMENT_ROOT is symlinked to (running
PHP 5.2.6 on OS X
Leopard). The fix was to change this line 285 in version 2.1 of
lib/Minify/CSS.php from:
$path = substr($path, strlen($_SERVER['DOCUMENT_ROOT']));
to:
$path = substr($path, strlen(realpath($_SERVER['DOCUMENT_ROOT'])));
Hope this prevents hours of frustration for someone else.
Original comment by [email protected]
on 7 Oct 2008 at 11:21
from minify.
@pvulgaris: Thanks for your help debugging this. I just committed R254 making
sure
all doc root accesses are passed through realpath.
Original comment by [email protected]
on 8 Oct 2008 at 1:23
- Changed state: Verified
- Added labels: Priority-High, Release-2.1.0
- Removed labels: Priority-Low
from minify.
Related Issues (20)
- Rewrite and version problem
- does not fully optimize HOT 1
- Connection was reset when trying to minify bootstrap CSS
- i have aproblem with test_Minify_CSS.php HOT 1
- Minify does not run on IIS
- Minify is not using the full potential of Minification. HOT 2
- Minify ignores no-cache header sent form the client HOT 8
- Firefox - transition delay must be given with units even if it is 0s HOT 3
- Debug=true causing javascript file to load commented
- maxAge is not set to 365 days when query-string ends with number HOT 1
- So Many Errors HOT 1
- <cite> tag handled as a block tag and not as an inline tag as it should HOT 2
- Patch for /min/config.php HOT 1
- [deleted issue]
- Minifying method calls on bare Numbers fails HOT 2
- NetworkError: 500 Internal Server Error HOT 2
- please provide the cli minifier as a phar archive
- $_SERVER['DOCUMENT_ROOT'] for file path is unreliable
- How to use this minify inside another script package? eg myBB?
- PHP Warning: fclose()
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from minify.