Skip to content

Commit

Permalink
Update the comment for ezyang#406
Browse files Browse the repository at this point in the history
  • Loading branch information
matsuo committed Apr 18, 2024
1 parent 672a6a1 commit c8b4404
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/HTMLPurifier/AttrDef/URI/Host.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ public function validate($string, $config, $context)
// as per RFC 3696, the top label need only not be all numeric.
// The productions describing this are:
$a = '[a-z]'; // alpha
$an = "[a-z0-9$underscore]"; // alphanum
$and = "[a-z0-9-$underscore]"; // alphanum | "-"
$an = "[a-z0-9$underscore]"; // alphanum | "_"
$and = "[a-z0-9-$underscore]"; // alphanum | "-" | "_"
// domainlabel = alphanum | alphanum *( alphanum | "-" ) alphanum
$domainlabel = "$an(?:$and*$an)?";
// AMENDED as per RFC 3696
Expand Down

0 comments on commit c8b4404

Please sign in to comment.