Merged in bugfix/PMCORE-2958 (pull request #7899)

PMCORE-2958 Review the WARNING in the file gulliver/system/class.g.php

Approved-by: Julio Cesar Laura Avendaño
This commit is contained in:
Roly Rudy Gutierrez Pinto
2021-04-26 13:45:16 +00:00
committed by Julio Cesar Laura Avendaño

View File

@@ -785,12 +785,6 @@ class G
*/ */
public static function parseURI($uri, $isRestRequest = false) public static function parseURI($uri, $isRestRequest = false)
{ {
//*** process the $_POST with magic_quotes enabled
// The magic_quotes_gpc feature has been DEPRECATED as of PHP 5.3.0.
if (get_magic_quotes_gpc() === 1) {
$_POST = G::strip_slashes($_POST);
}
$aRequestUri = explode('/', $uri); $aRequestUri = explode('/', $uri);
if ($isRestRequest) { if ($isRestRequest) {
$args = self::parseRestUri($aRequestUri); $args = self::parseRestUri($aRequestUri);
@@ -2604,7 +2598,7 @@ class G
} }
} }
$dirArray[] = $uid; $dirArray[] = $uid;
$newfileStructure = implode($dirArray, '/'); $newfileStructure = implode('/', $dirArray);
return $newfileStructure; return $newfileStructure;
} }
@@ -2666,7 +2660,7 @@ class G
$fileUid = substr($fileUid, $splitSize, $len); $fileUid = substr($fileUid, $splitSize, $len);
} }
} }
$response[] = implode($dirArray, '/') . '/'; $response[] = implode('/', $dirArray) . '/';
$response[] = $fileUid; $response[] = $fileUid;
} else { } else {
$response[] = ''; $response[] = '';