- Timestamp:
- Jul 29, 2011, 6:05:05 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/PiwigoLib/PiwigoLib/Proxy/Helper/PwgProxyReponseHelper.cs
r7149 r11850 4 4 using System.Text; 5 5 using System.Web; 6 7 using Com.Piwigo.Lib.DTO.Helper; 6 8 7 9 namespace Com.Piwigo.Lib.Proxy.Helper … … 48 50 { 49 51 String FormatString = String.Empty; 52 String ParamValue = String.Empty; 53 50 54 if (value != null) 51 55 { … … 56 60 } 57 61 58 queryStringBuilder.AppendFormat(FormatString, paramName, HttpUtility.UrlEncode(value.ToString().ToLower())); 62 if (typeof(T).IsEnum) 63 { 64 ParamValue = HttpUtility.UrlEncode(PwgEnumHelper<T>.StringValueOf(value)); 65 } 66 else 67 { 68 ParamValue = HttpUtility.UrlEncode(value.ToString().ToLower()); 69 } 70 71 queryStringBuilder.AppendFormat(FormatString, paramName, ParamValue); 72 59 73 firstOcc = false; 60 74 }
Note: See TracChangeset
for help on using the changeset viewer.