mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-17 02:31:14 +01:00
use index of char instead of index of string, if possible
This commit is contained in:
@@ -158,7 +158,7 @@ public class DefaultCGIExecutor extends AbstractCGIExecutor
|
||||
|
||||
String execCmd = path;
|
||||
|
||||
if ((execCmd.charAt(0) != '"') && (execCmd.indexOf(" ") >= 0))
|
||||
if ((execCmd.charAt(0) != '"') && (execCmd.indexOf(' ') >= 0))
|
||||
{
|
||||
execCmd = "\"".concat(execCmd).concat("\"");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user