Jump to content

emonymous

Members
  • Posts

    1
  • Joined

  • Last visited

emonymous's Achievements

Newbie

Newbie (1/3)

0

Reputation

  1. I'm previously having problems with setting label with my torrents using WebUI when the label has backslash in it (for directory purpose: i use 'move torrent when completed' based on label). Then i figured it was because of the backslash not escaped when selecting a label that have backslash in it. so i open the script.js and modified this line else{_bf.push([lbl,"utWebUI.setLabel('"+lbl+"')"]);} to this code (with whitespace removed in my script.js) else{ var lblWithSlash=lbl.split("\\"); if(lblWithSlash.length!=0){ var lblTmp=lblWithSlash.join("\\\\"); } _bf.push([lbl,"utWebUI.setLabel('"+lblTmp+"')"]); } and it works for me. The question is, am i doing it the right way or should i do something else? thanks
×
×
  • Create New...