Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Do not utf8 decode variables that are to be stored in DB, just file n…
Browse files Browse the repository at this point in the history
…ames and pathes. Should fix #493
  • Loading branch information
cdujeu committed Nov 21, 2014
1 parent 82dd348 commit 1e5e88b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/plugins/action.share/class.ShareCenter.php
Expand Up @@ -1703,8 +1703,8 @@ public function createSharedRepository($httpVars, $repository, $accessDriver, $u
$index ++;
}

$label = AJXP_Utils::decodeSecureMagic($httpVars["repo_label"]);
$description = AJXP_Utils::decodeSecureMagic($httpVars["repo_description"]);
$label = AJXP_Utils::sanitize(AJXP_Utils::securePath($httpVars["repo_label"]), AJXP_SANITIZE_HTML);
$description = AJXP_Utils::sanitize(AJXP_Utils::securePath($httpVars["repo_description"]), AJXP_SANITIZE_HTML);
if (isSet($httpVars["repository_id"])) {
$editingRepo = ConfService::getRepositoryById($httpVars["repository_id"]);
}
Expand Down

1 comment on commit 1e5e88b

@Nanomani
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cdujeu, perfect ! All is good. Thx :-)

Please sign in to comment.