Ignore:
Timestamp:
Sep 4, 2011, 2:28:56 AM (13 years ago)
Author:
Tariq Hamkari
Message:

fixing bug "crash when user name has a single quote"

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Scheduling/trunk/cs/bsdx0200GUISourceCode/CGView.cs

    r1190 r1233  
    19391939                        dt = this.DocManager.GlobalDataSet.Tables["ResourceUser"];
    19401940                        dv = new DataView(dt, "", "RESOURCENAME ASC", DataViewRowState.OriginalRows);
    1941                         dv.RowFilter = "USERNAME = '" + this.DocManager.ConnectInfo.UserName + "'";
     1941
     1942            //dv.RowFilter = "USERNAME = '" + filte_name + "'";
     1943            dv.RowFilter = String.Format("USERNAME = '{0}'", this.DocManager.ConnectInfo.UserName.Replace("'", "''"));
     1944
    19421945                        for (int j=0; j < dv.Count; j++)
    19431946                        {
Note: See TracChangeset for help on using the changeset viewer.