summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--index.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/index.php b/index.php
index 254d209..c31bcc4 100644
--- a/index.php
+++ b/index.php
@@ -75,7 +75,7 @@ switch(get('op')){
foreach($functions as $function){
$remainingCost -= $function['summedSelfCost'];
-
+ $function['file'] = urlencode($function['file']);
$result['functions'][] = $function;
if($remainingCost<0)
break;
@@ -100,7 +100,7 @@ switch(get('op')){
$invo = $reader->getCalledFromInfo($functionNr, $i);
$foundInvocations += $invo['callCount'];
$callerInfo = $reader->getFunctionInfo($invo['functionNr']);
- $invo['file'] = $callerInfo['file'];
+ $invo['file'] = urlencode($callerInfo['file']);
$invo['callerFunctionName'] = $callerInfo['functionName'];
$result['calledFrom'][] = $invo;
}
@@ -109,7 +109,7 @@ switch(get('op')){
for($i=0;$i<$function['subCallInfoCount'];$i++){
$invo = $reader->getSubCallInfo($functionNr, $i);
$callInfo = $reader->getFunctionInfo($invo['functionNr']);
- $invo['file'] = $function['file']; // Sub call to $callInfo['file'] but from $function['file']
+ $invo['file'] = urlencode($function['file']); // Sub call to $callInfo['file'] but from $function['file']
$invo['callerFunctionName'] = $callInfo['functionName'];
$result['subCalls'][] = $invo;
}