SecurityHelperGetSafeQueryString Method (String, Boolean) |
Note: This API is now obsolete.
Returns safe sql query string - escapes apostrophes and optionally escapes wildcard characters _, %, [].
Namespace: CMS.HelpersAssembly: CMS.Helpers (in CMS.Helpers.dll) Version: 8.2.23
Syntax [ObsoleteAttribute("This method is obsolete use SqlHelper.EscapeQuotes and SqlHelper.EscapeLikeText instead.")]
public static string GetSafeQueryString(
string input,
bool escapeWildcards
)
Parameters
- input
- Type: SystemString
String to escape - escapeWildcards
- Type: SystemBoolean
Determines whether the wildcards characters should be escaped
Return Value
Type:
StringSee Also