1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2025-02-21 04:59:49 +01:00
vichan/templates
papereth 6ccaf19045
Fixed thread.html template (#380)
* Update functions.php

` $_SERVER['REMOTE_ADDR']` was hardcoded in ban lookup instead of `$ip` variable

* Fix information leak in thread.html

Sensitive information can be leaked due to inadequate/absent escaping.

Line 14 is truncating before removing tags, this can cause some tags to be cut and therefore not be removed by the `remove_` functions.
Line 22 is just leaking it all, not removing anything.

* Fixed thread template

`remove_markup` is not available on vichan, arguably it makes things better but it's out of scope for this CHANGE, removing modifiers is enough to stop the info leak
consider adding it again after pulling:
fallenPineapple@a5b3336

also moving truncation before escaping for extra safety
2020-08-15 07:19:47 -07:00
..
2016-05-05 09:16:09 +02:00
2019-05-02 12:19:50 +08:00
2020-01-21 09:46:29 +08:00
2020-01-20 10:37:54 +08:00
2015-04-22 06:06:34 +02:00
2018-03-01 22:57:53 -03:00
2016-05-05 15:37:50 +02:00
2018-03-01 22:57:53 -03:00
2016-05-06 16:39:20 +02:00
2016-05-06 16:39:20 +02:00
2016-05-05 13:33:14 +02:00
2020-08-15 07:19:47 -07:00