CSSMin: Change behavior for missing files
authorBartosz Dziewoński <matma.rex@gmail.com>
Wed, 11 Dec 2013 20:21:36 +0000 (21:21 +0100)
committerBartosz Dziewoński <matma.rex@gmail.com>
Wed, 11 Dec 2013 20:21:36 +0000 (21:21 +0100)
commite36dcfa4c6e821bce7ecdcec3000ebf308e587f3
tree57c1ee44102c3bf574cb9647b696da40487f08fd
parent3987b10b51ac76d18b82f94251c8fae0f6d469f5
CSSMin: Change behavior for missing files

We would previously return the path to the local file on the
filesystem, which is useless in all cases and possibly a security
issue in some. Now we return the URL at which the file would be
accessible had it existed.

Also reordered the code around that part to make the control flow
clearer and added a test.

Change-Id: I1d5befb2ea385ae4d316c5d8c5d1fc092b64c4ff
includes/libs/CSSMin.php
tests/phpunit/includes/libs/CSSMinTest.php