#7332: Escape css id's and classes in templates
--------------------------+-------------------------------------------------
Reporter: timdumol | Owner: boothby
Type: defect | Status: closed
Priority: major | Milestone: sage-4.2.1
Component: notebook | Resolution: fixed
Keywords: | Work_issues:
Author: Tim Dumol | Upstream: N/A
Reviewer: Mitesh Patel | Merged:
--------------------------+-------------------------------------------------
Changes (by mpatel):
* upstream: => N/A
Comment:
On [http://groups.google.com/group/sage-
devel/browse_thread/thread/9da7dd211fe5570b this sage-devel thread]: I
forgot to account for dots (`'.'`) in login names. A quick fix: In
`sagenb/data/sage/js/notebook_lib.js`'s `check_worksheet_filenames`,
replace
{{{
id = worksheet_filenames[i].replace('/', '-');
}}}
with
{{{
id = worksheet_filenames[i].replace(/[\/.]/g, '-');
}}}
I'll open a new ticket and add a patch, once I'm confident I haven't
missed other special characters.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/7332#comment:6>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.