Issue tracker moved to https://gitlab.archlinux.org/archlinux/aurweb/-/issues
FS#5128 - Comments aren't being submitted in full
Attached to Project:
AUR web interface
Opened by Joshua Taylor (deficite) - Friday, 28 July 2006, 16:08 GMT
Last edited by Roman Kyrylych (Romashka) - Thursday, 04 October 2007, 17:17 GMT
Opened by Joshua Taylor (deficite) - Friday, 28 July 2006, 16:08 GMT
Last edited by Roman Kyrylych (Romashka) - Thursday, 04 October 2007, 17:17 GMT
|
DetailsI keep on having problems with posting comments in AUR. It chops off most of the comment and only leaves like the first sentence or so of the comment. I'm not getting any error messages or anything, so I don't know what the problem is.
|
This task depends upon
print str_replace("\n", "<br>", str_replace('"',""", htmlspecialchars(strip_tags(stripslashes($carr["Comments"])))));
This fixes it temporarily.. however this is more of a security issue. Why not addslashes when comments are entered into the db then strip them when reading them?