Skip to content

Doesn't work if there are apostrophes in the file name. #155

@DimkaM

Description

@DimkaM

Doesn't work if there are apostrophes in the file name.
I made hotfix in dl.php file line 116:

$archiveName = basename($archiveName);
$archiveName = encodePath($archiveName);
$archiveName = str_replace("%26apos%3B","%27",$archiveName);

And in svnlook.php file line 633:

	function svnCommandString($command, $path, $rev, $peg) {
		global $config;
		$s=encodePath($this->getSvnPath($path));
		$s=str_replace('%26apos%3B','%27',$s);
		return $config->getSvnCommand().$this->repConfig->svnCredentials().' '.$command.' '.($rev ? '-r '.$rev.' ' : '').quote($s.'@'.($peg ? $peg : ''));	
	}

But this is a very bad decision.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions