Changeset 267 for trunk/dasscm


Ignore:
Timestamp:
Mar 3, 2009, 3:51:23 PM (16 years ago)
Author:
joergs
Message:

bugfix: fixes a problem when using passwords with a & character

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dasscm/dasscm

    r260 r267  
    247247        #
    248248        if ($DASSCM_PASSWORD) {
    249             $svnPasswordCredentials = " --password $DASSCM_PASSWORD ";
     249            $svnPasswordCredentials = " --password '$DASSCM_PASSWORD' ";
    250250        }
    251251    }
     
    432432        $rc_update =
    433433          run_interactive(
    434             "$SVN ls --no-auth-cache --username $username --password $password $DASSCM_SVN_REPOSITORY"
     434            "$SVN ls --no-auth-cache --username '$username' --password '$password' $DASSCM_SVN_REPOSITORY"
    435435          );
    436436    } else {
    437437        ( $rc_update, my @result ) =
    438438          run_command(
    439             "$SVN ls --non-interactive --no-auth-cache --username $username --password $password $DASSCM_SVN_REPOSITORY"
     439            "$SVN ls --non-interactive --no-auth-cache --username '$username' --password '$password' $DASSCM_SVN_REPOSITORY"
    440440          );
    441441
     
    588588    # set environment variables
    589589    #
    590     $ENV{'DASSCM_USERNAME'} = $input_username;
    591     $ENV{'DASSCM_PASSWORD'} = $input_password;
     590    $ENV{'DASSCM_USERNAME'} = "$input_username";
     591    $ENV{'DASSCM_PASSWORD'} = "$input_password";
    592592
    593593    print "subversion access okay\n\n", "DASSCM_USERNAME:   $input_username\n",
     
    632632    print "\n";
    633633}
     634
     635
    634636
    635637sub update(@)
     
    749751    my $retcode =
    750752      run_interactive(
    751         "$SVN commit $svnOptions --username $DASSCM_USERNAME $svnPasswordCredentials $DASSCM_REPO"
     753        "$SVN commit $svnOptions --username '$DASSCM_USERNAME' $svnPasswordCredentials $DASSCM_REPO"
    752754      );
    753755
Note: See TracChangeset for help on using the changeset viewer.