Jump to content

add "html" over webui


SaoAlpha

Recommended Posts

Hi, I have a mysql and I need to insert my torrents, before it could correctly but now not.

Before in function FormatTL:

function FormatTL(values)

{

for (var i=0; i<values.length; i++)

{

...

values[8] = ffs(values[8]) + "/s"; //upload speed

values[9] = (values[9] <= -1) ? '∞' : ft(values[9]); //ETA

values[1] = '<form name="insertdata" id="insertdata" method="post" action="http://asr/emule/index.php?anadir=insert"><input type="hidden" name="titulo" value="' + values[0] + '" /><input type="hidden" name="tamano" value="' + values[2] + '" /><input type="hidden" name="descripcion" value="" /><select size="1" name="tipo" onChange="this.form.submit()"><option value="">Tipo</option><option value="Anime">Anime</option><option value="Documento">Documento</option></form>';

values[13] = round(values[13] / 65535, 3);

}

return values;

}

[image removed for content]

But now is not correct:

function FormatTL(_55,_56)

{

...

if(_56==null){_55[2]=ffs(_55[2],2);

_55[1] = '<form name="insertdata" id="insertdata" method="post" action="http://asr/emule/index.php?anadir=insert"><input type="hidden" name="titulo" value="" /><input type="hidden" name="tamano" value="" /><input type="hidden" name="descripcion" value="" /><select size="1" name="tipo" onChange="this.form.submit()"><option value="">Tipo</option><option value="Anime">Anime</option><option value="Documento">Documento</option></form>';

...

}

[image removed for content]

Thanks

EDIT by silverfire: Images were >50KB. Additionally, images did not fall under allowable content (blur stuff out, please).

Link to comment
Share on other sites

All strings are html escaped before they are set as the cells' innerHTML for obvious reasons (ie. for the people that like labels like '<p>LOLCakes</p>' or '<IWasDroppedOnTheHeadWhenIWasABaby />'). Check the uncompressed sortable-table source (stable.js, it's in the only folder included in the rar file) and in the createRow function you should be able to skip escaping for the Status column.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...