aboutsummaryrefslogtreecommitdiffstats
path: root/lib/test_server/src/test_server_gl.erl
diff options
context:
space:
mode:
authorPeter Andersson <[email protected]>2016-01-22 02:05:30 +0100
committerPeter Andersson <[email protected]>2016-03-08 09:36:20 +0100
commit7a05d84c9d6664573a34485e3441b3c9542ed25b (patch)
tree983bd355c98cb78bb40a87e26a406bd6e4a6daa3 /lib/test_server/src/test_server_gl.erl
parenta9d95108304a6d037a12c0772d257358f9900ca4 (diff)
downloadotp-7a05d84c9d6664573a34485e3441b3c9542ed25b.tar.gz
otp-7a05d84c9d6664573a34485e3441b3c9542ed25b.tar.bz2
otp-7a05d84c9d6664573a34485e3441b3c9542ed25b.zip
Make sure special characters are escaped in e.g. pal and log printouts
Diffstat (limited to 'lib/test_server/src/test_server_gl.erl')
-rw-r--r--lib/test_server/src/test_server_gl.erl10
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/test_server/src/test_server_gl.erl b/lib/test_server/src/test_server_gl.erl
index c5ec3ccbe6..356a3288b8 100644
--- a/lib/test_server/src/test_server_gl.erl
+++ b/lib/test_server/src/test_server_gl.erl
@@ -193,7 +193,15 @@ handle_info({io_request,From,ReplyAs,Req}=IoReq, St) ->
#st{capture=CapturePid} ->
CapturePid ! {captured,Data}
end,
- output(minor, Data, From, From, St)
+
+
+ %%! PROBLEM HERE!
+ %%! Data could come html tagged from CT!!
+
+ %EscapedChars = test_server_ctrl:escape_chars(Data),
+ EscapedChars = Data,
+
+ output(minor, EscapedChars, From, From, St)
end,
From ! {io_reply,ReplyAs,ok}
catch