Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Rotua Panjaitan
yii2
Commits
dcf8f450
Commit
dcf8f450
authored
Jan 21, 2014
by
Paul Klimov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
AssetController adjusting URLs at same line has been fixed.
parent
b85142a4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletion
+13
-1
AssetController.php
framework/console/controllers/AssetController.php
+1
-1
AssetControllerTest.php
...nit/framework/console/controllers/AssetControllerTest.php
+12
-0
No files found.
framework/console/controllers/AssetController.php
View file @
dcf8f450
...
...
@@ -558,7 +558,7 @@ EOD;
return
str_replace
(
$inputUrl
,
$outputUrl
,
$fullMatch
);
};
$cssContent
=
preg_replace_callback
(
'/url\(["\']?([^
"
]*)["\']?\)/is'
,
$callback
,
$cssContent
);
$cssContent
=
preg_replace_callback
(
'/url\(["\']?([^
)^"^\'
]*)["\']?\)/is'
,
$callback
,
$cssContent
);
return
$cssContent
;
}
...
...
tests/unit/framework/console/controllers/AssetControllerTest.php
View file @
dcf8f450
...
...
@@ -338,6 +338,18 @@ EOL;
'/test/base/path/assets/output'
,
'.absolute-url-secure-class {background-image: url(https://secure.domain.com/img/image.gif);}'
,
],
[
"@font-face {
src: url('../fonts/glyphicons-halflings-regular.eot');
src: url('../fonts/glyphicons-halflings-regular.eot?#iefix') format('embedded-opentype');
}"
,
'/test/base/path/assets/input/css'
,
'/test/base/path/assets/output'
,
"@font-face {
src: url('../input/fonts/glyphicons-halflings-regular.eot');
src: url('../input/fonts/glyphicons-halflings-regular.eot?#iefix') format('embedded-opentype');
}"
,
],
];
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment