C
CyberDroog
At least I think it is... I have been playing with HttpFileServer
v2.0beta23 (http://www.rejetto.com/sw/) along with some user created
templates.
One of the template has a problem with file names that contain a single
quote character. The forum for the software doesn't seem to have much
traffic, so maybe someone here can see what the problem is and how to fix
it.
An example line from the code to display a file name: <tr class="mout"
onmouseover="this.className='mover'" onmouseout="this.className='mout'"
onclick="location.href='%item-url%'">
The part: onclick="location.href='%item-url%' seems to be the problem since
it is surrounded by single quotes. When it comes across a folder name such
as: CD's, that seems to translate in the code to 'CD's', and the code
chokes. Clicking the link does nothing, and reloading the file list can
produce an "Error expecting ;" for every file or folder name that contains
a single quote.
Is there a simple way to fix this?
v2.0beta23 (http://www.rejetto.com/sw/) along with some user created
templates.
One of the template has a problem with file names that contain a single
quote character. The forum for the software doesn't seem to have much
traffic, so maybe someone here can see what the problem is and how to fix
it.
An example line from the code to display a file name: <tr class="mout"
onmouseover="this.className='mover'" onmouseout="this.className='mout'"
onclick="location.href='%item-url%'">
The part: onclick="location.href='%item-url%' seems to be the problem since
it is surrounded by single quotes. When it comes across a folder name such
as: CD's, that seems to translate in the code to 'CD's', and the code
chokes. Clicking the link does nothing, and reloading the file list can
produce an "Error expecting ;" for every file or folder name that contains
a single quote.
Is there a simple way to fix this?