Changeset 942 for branches/1.1/jobmond


Ignore:
Timestamp:
12/18/13 12:24:49 (10 years ago)
Author:
dennis
Message:

Make sure we encode the string before creating the XML

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.1/jobmond/jobmond.py

    r927 r942  
    3030from collections import deque
    3131from glob import glob
     32import cgi
    3233
    3334VERSION='__VERSION__'
     
    9991000                        # fixme: It's getting
    10001001                        # ('nodes', None) items
    1001                         my_val_str = my_val_str + ' ' + val_name + '=' + val_value
     1002                        my_val_str = my_val_str + ' ' + val_name + '=' + cgi.encode(val_value)
    10021003                    except:
    10031004                        pass
    10041005
    10051006                else:
    1006                     my_val_str = val_name + '=' + val_value
     1007                    my_val_str = val_name + '=' + cgi.encode(val_value)
    10071008
    10081009            str_list.append( my_val_str )
Note: See TracChangeset for help on using the changeset viewer.