Skip to content

Commit

Permalink
Merge pull request #207 from hjain-perforce/master
Browse files Browse the repository at this point in the history
Replacing "+" to "%2B" before URLDecoding to retain "+" in client wor…
  • Loading branch information
skumar7322 authored Jul 15, 2024
2 parents 64b40bd + ab2ac28 commit d6dff2d
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@
import java.io.PrintWriter;
import java.io.StringWriter;
import java.net.URLDecoder;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.NoSuchFileException;
import java.nio.file.Path;
Expand Down Expand Up @@ -489,7 +490,8 @@ private void tidyForceSyncImpl(String path, Populate populate) throws Exception
syncFiles(revisions, clean);

// remove all files from workspace
String root = URLDecoder.decode(iclient.getRoot(), "UTF-8");
String encodedRoot = iclient.getRoot().replace("+", "%2B");
String root = URLDecoder.decode(encodedRoot, StandardCharsets.UTF_8);
log("... rm -rf " + root);
log("");
silentlyForceDelete(root);
Expand Down

0 comments on commit d6dff2d

Please sign in to comment.