Gossamer Forum
Home : Products : Others : Fileman :

not modifying special characters when editing

Quote Reply
not modifying special characters when editing
Hi

I have just been playing with a copy of fileman on a site which has a © and a · in the footer - when the file is edited and saved it results in © and · in the .html file rather than & copy; and a & middot; (spaced add so it shows up).

What I think is needed is that anything starting with & and ending with ; (with no white space in-between) gets converted into &whatever; so that it displays like &whatever; in the TEXTAREA field and it would need to then converted back to &whatever; when the file is written.

There is already something like this going on - in fileman.cgi in sub edit { there is this:

Code:
$lines =~ s/<\/TEXTAREA/<\/TEXT-AREA/ig;

which ensures that pages with textareas in them are able to be edited as the closing tag is displayed as </text-area>

Anyone done a mod along these lines, or does anyone who is better at perl than me fancy doing it?

Thanks

Chris



[This message has been edited loads and loads of time as this forum has the same problem as fileman... Wink]

[This message has been edited by Chris Croome (edited June 20, 1999).]