#732: AgaviToolkit::expandVariables replacing is too greedy
--------------------+-------------------------------------------------------
Reporter: david | Owner: david
Type: defect | Status: new
Priority: normal | Milestone: 0.11.1
Component: util | Version: 0.11.0
Severity: minor | Keywords:
Has_patch: 0 |
--------------------+-------------------------------------------------------
{{{
AgaviToolkit::expandVariables('foo $foo $foobar', array('foo' => 'bar');
}}}
expected:
{{{
foo bar $foobar
}}}
actual:
{{{
foo bar barbar
}}}
This is because the other two forms with curly braces are replaced to
{{{$blah}}} and then str_replace is used
--
Ticket URL: <http://trac.agavi.org/ticket/732>
Agavi <http://www.agavi.org/>
An MVC Framework for PHP5
_______________________________________________
Agavi Tickets Mailing List
[email protected]
http://lists.agavi.org/mailman/listinfo/tickets