aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Gudmundsson <[email protected]>2015-12-08 10:03:46 +0100
committerDan Gudmundsson <[email protected]>2015-12-08 10:03:46 +0100
commitafdff184c6d7f98d525cb149018d3814912e9a2b (patch)
tree12ed520d9cf13d6a2e8a3af9616e2565bbc3da15
parent04e6a4bec37a212c5639983b61f23aa4d5118bfb (diff)
parent99f322eecb31ea23b7ff5dbb30c3b26f53bd6252 (diff)
downloadotp-afdff184c6d7f98d525cb149018d3814912e9a2b.tar.gz
otp-afdff184c6d7f98d525cb149018d3814912e9a2b.tar.bz2
otp-afdff184c6d7f98d525cb149018d3814912e9a2b.zip
Merge branch 'dgud/observer/cdv-crash-truncbin/OTP-13163' into maint
* dgud/observer/cdv-crash-truncbin/OTP-13163: observer: Handle truncated binaries
-rw-r--r--lib/observer/src/observer_html_lib.erl4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/observer/src/observer_html_lib.erl b/lib/observer/src/observer_html_lib.erl
index 9d8c2d998c..f646f8ed3e 100644
--- a/lib/observer/src/observer_html_lib.erl
+++ b/lib/observer/src/observer_html_lib.erl
@@ -387,7 +387,9 @@ remove_lgt(Deep) ->
remove_lgt_1([$<,$<|Rest]) ->
[$>,$>|BinStr] = lists:reverse(Rest),
- replace_lgt(lists:reverse(BinStr)).
+ replace_lgt(lists:reverse(BinStr));
+remove_lgt_1(TruncBin) ->
+ TruncBin.
replace_lgt([$<|R]) ->
["&lt;"|replace_lgt(R)];