From 0ab65a035823e6f5bc9a8a2a302e3eaccea6e0dc Mon Sep 17 00:00:00 2001 From: Jared Fine Date: Thu, 11 Aug 2022 18:52:12 -0400 Subject: [PATCH] Use CGI.escape instead --- table/lib/azure/storage/table/table_service.rb | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/table/lib/azure/storage/table/table_service.rb b/table/lib/azure/storage/table/table_service.rb index 6357b645..bd26160f 100644 --- a/table/lib/azure/storage/table/table_service.rb +++ b/table/lib/azure/storage/table/table_service.rb @@ -741,14 +741,8 @@ def encodeODataUriValues(values) protected def encodeODataUriValue(value) - # Replace each single quote (') with double single quotes ('') not double - # quotes (") - value = value.gsub("'", "''") - # Encode the special URL characters - value = URI.escape(value) - - value + CGI.escape(value) end protected