Project

General

Profile

Actions

Bug #1687

closed

Backslashes in plugin params are doubled or quadrupled when used in plugins

Added by nant almost 14 years ago. Updated almost 14 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
10 May 2010
Due date:
% Done:

100%

Estimated time:
1:00 h

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

Actions #1

Updated by beat almost 14 years ago

  • 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
Actions #2

Updated by beat almost 14 years ago

Commit r988 implements the first fix above. But it looks like there is one more backslash-escaping in the expressions of CB-substitutions

Actions #3

Updated by beat almost 14 years ago

  • Status changed from New to Feedback
  • % Done changed from 50 to 90

Looks like now fixed. Please check in b1.

Actions #4

Updated by beat almost 14 years ago

  • Assignee changed from beat to nant
Actions #5

Updated by beat almost 14 years ago

  • % Done changed from 90 to 100
Actions #6

Updated by nant almost 14 years ago

  • Assignee changed from nant to beat

Looks ok!

Actions #7

Updated by beat almost 14 years ago

  • Status changed from Feedback to Closed
Actions

Also available in: Atom PDF