BUG 12475 "Request for the SYSGENERIC (Possible bug?)" SOLVED

- When data is sending by the URI, the path no is valid
- Solved problem, add validation when data is sending with URI

* Available from version ProcessMaker-2.5.2-testing.1
This commit is contained in:
Victor Saisa Lopez
2013-08-05 16:40:33 -04:00
parent b32b60b53e
commit ca1e02c32b

View File

@@ -408,7 +408,9 @@ if (Bootstrap::virtualURI( $_SERVER['REQUEST_URI'], $virtualURITable, $realPath
//Get that path in array
$paths = explode( PATH_SEP, $forQuery[0] );
$fileToBeStreamed = str_replace( "/skin/", PATH_CUSTOM_SKINS, $_SERVER['REQUEST_URI'] );
$url = (preg_match("/^(.*)\?.*$/", $_SERVER["REQUEST_URI"], $arrayMatch))? $arrayMatch[1] : $_SERVER["REQUEST_URI"];
$fileToBeStreamed = str_replace("/skin/", PATH_CUSTOM_SKINS, $url);
if (file_exists( $fileToBeStreamed )) {
//NewRelic Snippet - By JHL