New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Worksheet list CSS: Account for special characters in login names #7811
Comments
Escape /, @, and . in worksheet list CSS IDs. sagenb repo. |
Author: Mitesh Patel |
comment:1
Attachment: trac_7811-escape_ws_list_ids.patch.gz Please let me know if I've missed any other characters. |
comment:2
Why not use /[^-A-Za-z_0-9]/g ? If the regexp for usernames is updated for all valid emails, then '+' will be allowed for usernames, which is illegal as a CSS id. |
comment:3
Excellent point. I'll update the patch. |
Attachment: trac_7811-escape_ws_list_ids_v2.patch.gz More general RegExp. Replaces previous. |
comment:4
Works for me. Is it neceassary to run ./sage -t even when upgrading spkg package? |
comment:5
If you mean |
comment:6
Ideally this should be tested with |
comment:7
Replying to @qed777:
No, I meant actually sage -t. I wondered, if I can give positive review without doctesting. |
Reviewer: Robert Marik |
comment:8
Wors fine. Tests passed. Doctests are not meaningful for this patch. Positive review. |
comment:9
merged into sagenb-0.4.8 |
Merged: sagenb-0.4.8 |
We need to account for this difference
when processing the checkboxes in a worksheet listing. Otherwise, the Archive, Stop, and Delete buttons will not work for users whose login names contain dots (
.
) or at signs (@
).This is a follow-up to #7332. See sage-devel for the bug report.
CC: @robert-marik @TimDumol @williamstein
Component: notebook
Author: Mitesh Patel
Reviewer: Robert Marik
Merged: sagenb-0.4.8
Issue created by migration from https://trac.sagemath.org/ticket/7811
The text was updated successfully, but these errors were encountered: