Random tab in variable?

Random tab in variable?

  1. $('[id="btn_gen"]').text('Generating...');
  2. $('[id="btn_gen"]').attr('disabled','disabled');
  3. user = $('[name="name"]').val();
  4. $.ajax({
  5. url: 'jsinc_generate.php?username='+user
  6. }).done(function( sig ){
  7. if(sig == 'floodlimit'){
  8. alert('You cannot create anther signature until it\'s been ten minutes since the time of your last generated signature.');
  9. }else{
  10. $('[id="gen_form"]').toggle('slow', function(){
  11. url = 'http://novatops.hostzi.com/sigs/'+ sig +'.png';
  12. $('[id="gen_form"]').html('<img src="'+url+'"></img><br/><br/><table><tr><td><b>Direct:</b></td><td><input type="text" size="40" value="'+url+'"/></td></tr><tr><td><b>BBCode:</b></td><td> <input type="text" size="40" value="[img]'+url+'[/img]"></td></tr><tr><td><b>HTML:</b></td><td><input type="text" size="40" value="<img src=\''+url+'\' alt=\''+ user +'\' />"/></td></tr></table>');
  13. $('[id="gen_form"]').toggle('slow');
  14. });
  15. }
  16. });

In the above code, it seems there is a random trailing tab in the sig variable which is returned from the AJAX call. Any ideas as to why this is? I checked the output from the PHP page, and there's no extra spaces/tab.