[dreamwidth/dw-free] a8360f: Prevent infinite loop in htmlcleaner
Branch: refs/heads/master
Home: https://github.com/dreamwidth/dw-free
Commit: a8360f07da6511ae91f16577b0b685ef68ea82d1
https://github.com/dreamwidth/dw-free/commit/a8360f07da6511ae91f16577b0b685ef68ea82d1
Author: Nick Fagerlund <nick.fagerlund@gmail.com>
Date: 2020-05-26 (Tue, 26 May 2020)
Changed paths:
M cgi-bin/LJ/CleanHTML.pm
Log Message:
-----------
Prevent infinite loop in htmlcleaner
If the user's raw text has more closing ``s than it had opening ``s
(resulting in a negative `opencount{'lj-cut'}`), don't keep adding closing
``s until the end of time.
Home: https://github.com/dreamwidth/dw-free
Commit: a8360f07da6511ae91f16577b0b685ef68ea82d1
https://github.com/dreamwidth/dw-free/commit/a8360f07da6511ae91f16577b0b685ef68ea82d1
Author: Nick Fagerlund <nick.fagerlund@gmail.com>
Date: 2020-05-26 (Tue, 26 May 2020)
Changed paths:
M cgi-bin/LJ/CleanHTML.pm
Log Message:
-----------
Prevent infinite loop in htmlcleaner
If the user's raw text has more closing ``s than it had opening ``s
(resulting in a negative `opencount{'lj-cut'}`), don't keep adding closing
``s until the end of time.