]> Cypherpunks repositories - gostls13.git/commit
html/template: explain URL filtering
authorSamuel Tan <samueltan@google.com>
Wed, 2 Aug 2017 20:45:43 +0000 (13:45 -0700)
committerIan Lance Taylor <iant@golang.org>
Mon, 18 Sep 2017 21:30:07 +0000 (21:30 +0000)
commit9ee6f7b0616be6af09f47b80022eedd8c9b590da
tree522b1b4416c25a1adecb6627ec77ba6456be8679
parent6c8d5125d3fb170744b3c6813c977130bcb83622
html/template: explain URL filtering

Expand documentation in of the internal urlFilter function
to explain why URLs with schemes other than "http", "https",
and "mailto" are filtered out.

Fixes #20586

Change-Id: I1f65ff6e15fc4cd325489327c40f8c141904bf5c
Reviewed-on: https://go-review.googlesource.com/52853
Reviewed-by: Mike Samuel <mikesamuel@gmail.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/html/template/url.go