Gentler
Be a little gentler in recovering from Instiki::ValidationErrors, when saving a page. Previously, we threw away all the user's changes upon the redirect. Now we attempt to salvage what he wrote.
This commit is contained in:
parent
a769ef7a84
commit
a503e2b8ac
10 changed files with 23 additions and 13 deletions
|
@ -37,6 +37,9 @@ class String
|
|||
end
|
||||
#++
|
||||
|
||||
def purify
|
||||
delete("\x01-\x08\x0B\x0C\x0E-\x1F", "\ufffe\uffff")
|
||||
end
|
||||
#:stopdoc:
|
||||
MATHML_ENTITIES = {
|
||||
'Alpha' => 'Α',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue