aboutsummaryrefslogtreecommitdiffstats
path: root/lib/test_server/src
diff options
context:
space:
mode:
authorSiri Hansen <[email protected]>2013-01-25 11:33:57 +0100
committerSiri Hansen <[email protected]>2013-01-25 15:56:01 +0100
commit7a056d997ca002a99fec6d303b7077294c1d999b (patch)
tree6744bb7b55bf20481f0b7092d0d725e9dcc9bdbe /lib/test_server/src
parentb7777781864df9df281b521326db4210beaf9f6e (diff)
downloadotp-7a056d997ca002a99fec6d303b7077294c1d999b.tar.gz
otp-7a056d997ca002a99fec6d303b7077294c1d999b.tar.bz2
otp-7a056d997ca002a99fec6d303b7077294c1d999b.zip
[test_server] Don't escape : and @ in test log links
If escaping :, then links of type "file:///c:/ldisk..." will not work. Escaping @ does not create any problems, but the link becomes harder to read and most modern browsers can handle this.
Diffstat (limited to 'lib/test_server/src')
-rw-r--r--lib/test_server/src/test_server_ctrl.erl7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/test_server/src/test_server_ctrl.erl b/lib/test_server/src/test_server_ctrl.erl
index b7e7926fd6..e5d75e43c9 100644
--- a/lib/test_server/src/test_server_ctrl.erl
+++ b/lib/test_server/src/test_server_ctrl.erl
@@ -5364,11 +5364,12 @@ do_uri_encode([Char|Chars]) ->
do_uri_encode([]) ->
[].
-%% Copied from http_uri.erl
+%% Copied from http_uri.erl, but slightly modified
+%% (not converting @ and :)
reserved() ->
- sets:from_list([$;, $:, $@, $&, $=, $+, $,, $/, $?,
+ sets:from_list([$;, $&, $=, $+, $,, $/, $?,
$#, $[, $], $<, $>, $\", ${, $}, $|,
- $\\, $', $^, $%, $ ]).
+ $\\, $', $^, $%, $ ]).
encoding(File) ->
case epp:read_encoding(File) of