File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
src/Sitecore.Support.AdvancedSearchList/sitecore/shell/Applications/Buckets Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ namespace Sitecore.Support.ASL
33{
44 using System ;
55 using System . Text ;
6+ using System . Web ;
67 using System . Web . UI ;
78 using Sitecore . Buckets . Client . sitecore_modules . Shell . Sitecore . Buckets ;
89 using Sitecore . Buckets . Pipelines . UI . ExpandIdBasedSearchFilters ;
@@ -97,7 +98,7 @@ protected string PrepareClauses(Database db, string value)
9798
9899 var args = new ExpandIdBasedSearchFiltersArgs ( value , db ) ;
99100 ExpandIdBasedSearchFiltersPipeline . Run ( args ) ;
100- return WebUtil . EscapeJavascriptString ( args . ExpandedFilters ) ;
101+ return HttpUtility . JavaScriptStringEncode ( args . ExpandedFilters ) ;
101102 }
102103
103104 protected string GetDefaultClauses ( ID fieldId )
@@ -132,7 +133,7 @@ protected string PrepareSelectedIds(string value)
132133 {
133134 if ( Sitecore . Data . ID . IsID ( id ) )
134135 {
135- sb . AppendFormat ( "\" {0}\" ," , WebUtil . EscapeJavascriptString ( id ) ) ;
136+ sb . AppendFormat ( "\" {0}\" ," , HttpUtility . JavaScriptStringEncode ( id ) ) ;
136137 }
137138 else
138139 {
@@ -146,7 +147,7 @@ protected string PrepareSelectedIds(string value)
146147
147148 protected string PrepareIndexParameter ( string value )
148149 {
149- return value . IsNullOrEmpty ( ) ? string . Empty : string . Format ( "var aslIndex = '{0}';" , WebUtil . EscapeJavascriptString ( value ) ) ;
150+ return value . IsNullOrEmpty ( ) ? string . Empty : string . Format ( "var aslIndex = '{0}';" , HttpUtility . JavaScriptStringEncode ( value ) ) ;
150151 }
151152 }
152153
You can’t perform that action at this time.
0 commit comments