I had to implement my own functionality so I could override the $disallowed_values_regex to allow url() in some cases. In the event that the property is a full url (say http://example.com/image.gif), the value is not going to survive since there is also a colon in it. I got something back than like "property: url(http;" and that's it :)
Patch attached does an array_shift first and uses implode after that so url can survive.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | _ctools_css_disassemble_declaration.patch | 914 bytes | swentel |
| #2 | _ctools_css_disassemble_declaration.patch | 1.01 KB | swentel |
| _ctools_css_disassemble_declaration.patch | 1.01 KB | swentel |
Comments
Comment #1
neclimdulgood catch.
test? http://github.com/sdboyer/ctools/blob/sprint-master/tests/css.test
Comment #2
swentel commentedAlright, by creating the test, I saw my original patch was actually not working fully. Imploding on '' instead of ':', stupid me.
Attached here is a patch for D6.
Tests for D7 + small fix are committed on my github fork* and pull request is sent to the sprint-master branch of sdboyer.
* see http://github.com/swentel/ctools/blob/sprint-master/tests/css.test and http://github.com/swentel/ctools/blob/sprint-master/includes/css.inc
Comment #3
swentel commentedReroll, using explode with limit.
Comment #4
merlinofchaos commentedThanks! Committed.