Bug #1687
closed
Backslashes in plugin params are doubled or quadrupled when used in plugins
Added by nant over 14 years ago.
Updated over 14 years ago.
Description
function parse( ) in cbParamsBase class does not handle backshlashes properly:
Need to replace:
$value = str_replace( array( '\n', '\r', '\\\\' ), array( "\n", "\r", '\\' ), $value );
//$value = str_replace( array( '\n', '\r' ), array( "\n", "\r" ), $value );
in 2 places in function.
There is still 1 more \ handling bug somewhere, since invalid\.com saved in parms becomes invalid\\.com
- Subject changed from function parse( ) in cbParamsBase class does not handle backshlashes properly to Backslashes in plugin params are doubled or quadrupled when used in plugins
- Assignee set to beat
- Target version set to CB 1.2.3
- % Done changed from 0 to 50
- Estimated time set to 1:00 h
Commit r988 implements the first fix above. But it looks like there is one more backslash-escaping in the expressions of CB-substitutions
- Status changed from New to Feedback
- % Done changed from 50 to 90
Looks like now fixed. Please check in b1.
- Assignee changed from beat to nant
- % Done changed from 90 to 100
- Assignee changed from nant to beat
- Status changed from Feedback to Closed
Also available in: Atom
PDF