taw
Joined: 18 Jun 2007
Posts: 41
Location: Munich, Germany
|
Posted: Mon Jul 02, 2007 12:36 pm Post subject: Firefox SetVariable Bug in tb.js |
|
|
When I call SetVariable with val containing "\n", the eval()-function fails.
Code in your tb.js Version 3.5.0.1 Line 138 :
| Code: |
function <toolbarname>_SetVariable(name, val)
{
try{
name=name.replace(/[\#\\.]/g,'');
eval('<toolbarname>_tool.variable'+name+'=\''+val+'\';');
<toolbarname>_pref("<toolbarname>_tool.variable"+name, val.toString() );
}catch(e){if (debugmode) alert(e);}
}
|
|
|