diff options
author | oetting <jacob@oettinger.dk> | 2009-03-15 18:19:02 +0000 |
---|---|---|
committer | oetting <jacob@oettinger.dk> | 2009-03-15 18:19:02 +0000 |
commit | a565d32437b3fba32e42eb1bf45a8c2278999fc9 (patch) | |
tree | 4f392d991ddf93389f698a9397f1cef7ab6343ca | |
parent | 78850a704538040d3d5326cfe7a9d039abdc4d56 (diff) | |
download | webgrind-a565d32437b3fba32e42eb1bf45a8c2278999fc9.zip webgrind-a565d32437b3fba32e42eb1bf45a8c2278999fc9.tar.gz webgrind-a565d32437b3fba32e42eb1bf45a8c2278999fc9.tar.bz2 |
Potential fix for issue 31
-rw-r--r-- | index.php | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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; } |