arXiv / html_feedback

Supports a student project developing a UI for feedback on arXiv articles rendered as html.
MIT License
18 stars 3 forks source link

Bug-reporting interface breaks at '#' characters #893

Open gwern opened 7 months ago

gwern commented 7 months ago

Description

When using the report-bug interface in ar5iv for 'Report HTML Paper Issue' (here), a '#' character in the "title" or "Content selection saved. Describe the issue below:" field will have unpredictable bad effects, generally either truncating at '#' or deleting the entire field.

For example, a submission of title="foo#bar" + body="foo#bar" results in a bug report of title="foo", no body, and no metadata filled in. A submission with a normal title but a '#' anywhere in the body results in the body being truncated at the '#'.

As '#' is an entirely normal character to write, particularly when discussing bugs in PDF-related things where it is helpful to link to specific pages like #page=89, this is bad behavior.

(Optional:) Please add any files, screenshots, or other information here.

No response

(Required) What is this issue most closely related to? Select one.

Other

Internal issue ID

NA

Paper URL

NA

Browser

Firefox

Device Type

desktop

github-actions[bot] commented 7 months ago

Hello @gwern, thanks for the issue report! We are reviewing your report and will address it as soon as possible.

gwern commented 7 months ago

This also appears to be true of other ordinary Markdown characters like > for blockquotes, which makes it harder to report passages...

gwern commented 6 months ago

Also affects &.