summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoroetting <jacob@oettinger.dk>2009-03-15 18:19:02 +0000
committeroetting <jacob@oettinger.dk>2009-03-15 18:19:02 +0000
commita565d32437b3fba32e42eb1bf45a8c2278999fc9 (patch)
tree4f392d991ddf93389f698a9397f1cef7ab6343ca
parent78850a704538040d3d5326cfe7a9d039abdc4d56 (diff)
downloadwebgrind-a565d32437b3fba32e42eb1bf45a8c2278999fc9.zip
webgrind-a565d32437b3fba32e42eb1bf45a8c2278999fc9.tar.gz
webgrind-a565d32437b3fba32e42eb1bf45a8c2278999fc9.tar.bz2
Potential fix for issue 31
-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;
}