From 040564aa02a28de2f85453902fcde0325b911d9b Mon Sep 17 00:00:00 2001 From: Steve Block Date: Mon, 13 Sep 2010 14:46:30 +0100 Subject: Fix view_source.php for DumpRenderTree2 highlight_string() echos the result of the highlighting and returns a boolean success value. The existing code incorrectly echoes this boolean as part of the result. Change-Id: Icbfca6d8232ba3ad196f5909ad6c1ab4ac61f890 --- WebKitTools/DumpRenderTree/android/view_source.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/WebKitTools/DumpRenderTree/android/view_source.php b/WebKitTools/DumpRenderTree/android/view_source.php index dfe6d12..fc9ae31 100644 --- a/WebKitTools/DumpRenderTree/android/view_source.php +++ b/WebKitTools/DumpRenderTree/android/view_source.php @@ -40,12 +40,12 @@ return; } - #If we don't want realpath to append any prefixes we need to pass it an absolute path + # If we don't want realpath to append any prefixes we need to pass it an absolute path $src = realpath(getAbsolutePath($_GET['src'])); echo ""; # TODO: Add link following and syntax highlighting for html and js. - echo highlight_string(file_get_contents($src)); + highlight_string(file_get_contents($src)); echo ""; } -- cgit v1.1