mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-11 17:44:56 +00:00
Merge branch 'seeddms-5.0.x' into develop
This commit is contained in:
commit
b4e2224c3e
|
@ -61,12 +61,12 @@ if($settings->_quota > 0) {
|
|||
}
|
||||
}
|
||||
|
||||
$comment = $_POST["comment"];
|
||||
$version_comment = $_POST["version_comment"];
|
||||
$comment = trim($_POST["comment"]);
|
||||
$version_comment = trim($_POST["version_comment"]);
|
||||
if($version_comment == "" && isset($_POST["use_comment"]))
|
||||
$version_comment = $comment;
|
||||
|
||||
$keywords = $_POST["keywords"];
|
||||
$keywords = trim($_POST["keywords"]);
|
||||
$categories = isset($_POST["categories"]) ? $_POST["categories"] : null;
|
||||
$cats = array();
|
||||
if($categories) {
|
||||
|
@ -354,7 +354,7 @@ for ($file_num=0;$file_num<count($_FILES["userfile"]["tmp_name"]);$file_num++){
|
|||
}
|
||||
|
||||
if ((count($_FILES["userfile"]["tmp_name"])==1)&&($_POST["name"]!=""))
|
||||
$name = $_POST["name"];
|
||||
$name = trim($_POST["name"]);
|
||||
else $name = basename($userfilename);
|
||||
|
||||
/* Check if name already exists in the folder */
|
||||
|
|
|
@ -52,9 +52,9 @@ if($document->isLocked()) {
|
|||
}
|
||||
}
|
||||
|
||||
$name = isset($_POST['name']) ? $_POST["name"] : "";
|
||||
$comment = isset($_POST['comment']) ? $_POST["comment"] : "";
|
||||
$keywords = isset($_POST["keywords"]) ? $_POST["keywords"] : "";
|
||||
$name = isset($_POST['name']) ? trim($_POST["name"]) : "";
|
||||
$comment = isset($_POST['comment']) ? trim($_POST["comment"]) : "";
|
||||
$keywords = isset($_POST["keywords"]) ? trim($_POST["keywords"]) : "";
|
||||
if(isset($_POST['categoryidform1'])) {
|
||||
$categories = explode(',', preg_replace('/[^0-9,]+/', '', $_POST["categoryidform1"]));
|
||||
} elseif(isset($_POST["categories"])) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user