IP Library Granted Patent US 10,599,755
Granted Patent B2
US 10,599,755 · App. 15/291,201 · Granted Mar 24, 2020

System and method for automatically inserting correct escaping functions for field references in a multi-tenant computing environment

Inventor: Steven Lawrance (San Francisco, CA)
Assignee: salesforce.com, inc.
G06F17/24G06F17/2217G06F17/2247
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 10,599,755
App. No.
15/291,201
Granted
Mar 24, 2020
Kind
B2
Abstract

Methods and systems are provided for automatically correcting escaping functions in a module of page rendering code. The method includes: providing an HTML escaping schema and a script escaping schema; identifying a first character sequence having a first escaping function; determining whether the first character sequence is coded in HTML or coded as a scripted element; correcting the first escaping function using the HTML escaping schema if the first character sequence is coded in HTML; and correcting the first escaping function using the script escaping schema if the first character sequence is coded as a scripted element.

Claims (38)

1. A processor-implemented method of automatically correcting escaping functions in a module of page rendering code, the method comprising:

providing, by a virtual application on an application platform, an HTML escaping schema and a script escaping schema;

identifying, by the virtual application on the application platform, a first character sequence having a first escaping function;

scanning, by the virtual application on the application platform, the page rendering code on a character by character basis using a finite state machine to determine whether the first character sequence is coded in HTML or coded as a scripted element;

selecting, by the virtual application on the application platform, one of the HTML escaping schema and the script escaping schema based on the output of the finite state machine;

automatically correcting, by the virtual application on the application platform, the first escaping function using the HTML escaping schema if the first character sequence is coded in HTML; and

automatically correcting, by the virtual application on the application platform, the first escaping function using the script escaping schema if the first character sequence is coded as a scripted element.

2. The method of claim 1 , further comprising rendering a page in a web browser using the corrected first escaping function.

3. The method of claim 1 , further comprising determining that the first character sequence is coded in JavaScript, and wherein the script escaping schema comprises JSENCODE.

4. The method of claim 1 , wherein the first character sequence having a first escaping function is in a module of page rendering code saved on the virtual application platform.

5. The method of claim 4 , further comprising:

retrieving, by the virtual application, the module of page rendering code from the virtual application platform;

receiving, by the virtual application, edits to the module of page rendering code, the edits including edits to the first escaping function; and

saving the corrected first escaping function that was corrected using the HTML escaping schema or the script escaping schema in the module of page rendering code on the virtual application platform.

6. A processor-implemented method of automatically correcting escaping functions in a module of page rendering code, the method comprising:

providing, by a virtual application on an application platform, an HTML escaping schema and a script escaping schema;

identifying, by the virtual application, a first character sequence having a first escaping function;

scanning, by the virtual application, the page rendering code on a character by character basis using a finite state machine to determine whether the first character sequence is coded in HTML or coded as a scripted element;

correcting, by the virtual application, the first escaping function using the HTML escaping schema if the first character sequence is coded in HTML;

correcting, by the virtual application, the first escaping function using the script escaping schema if the first character sequence is coded as a scripted element; and

presenting, by the virtual application, the corrected first escaping function for user review and acceptance of the corrected first escaping function.

7. The method of claim 6 , wherein the first character sequence having a first escaping function is in a module of page rendering code saved on the virtual application platform.

8. The method of claim 7 , further comprising:

retrieving, by the virtual application, the module of page rendering code from the virtual application platform;

receiving, by the virtual application, edits to the module of page rendering code, the edits including edits to the first escaping function; and

saving the corrected first escaping function that was corrected using the HTML escaping schema or the script escaping schema in the module of page rendering code on the virtual application platform.

9. Non-transient computer readable media encoded with programming instructions configurable to cause one or more processors to perform a method, the method comprising:

providing, by a virtual application on an application platform, an HTML escaping schema and a script escaping schema;

identifying, by the virtual application, a first character sequence having a first escaping function in a module of page rendering code;

scanning, by the virtual application, the page rendering code on a character by character basis using a finite state machine to determine whether the first character sequence is coded in HTML or coded as a scripted element;

selecting, by the virtual application, one of the HTML escaping schema and the script escaping schema based on the output of the finite state machine;

correcting, by the virtual application, the first escaping function using the HTML escaping schema if the first character sequence is coded in HTML; and

correcting, by the virtual application, the first escaping function using the script escaping schema if the first character sequence is coded as a scripted element.

10. The non-transient computer readable media of claim 9 , wherein the first character sequence having a first escaping function is in a module of page rendering code saved on the virtual application platform.

11. The non-transient computer readable media of claim 10 , wherein the method further comprises:

retrieving, by the virtual application, the module of page rendering code from the virtual application platform;

receiving, by the virtual application, edits to the module of page rendering code, the edits including edits to the first escaping function; and

saving the corrected first escaping function that was corrected using the HTML escaping schema or the script escaping schema in the module of page rendering code on the virtual application platform.

Assignments (2)
CHANGE OF NAME Recorded Nov 21, 2024
From: SALESFORCE.COM, INC.
To: SALESFORCE, INC.
Reel/Frame 069431/0156 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Oct 12, 2016
From: LAWRANCE, STEVEN
To: SALESFORCE.COM, INC.
Reel/Frame 040323/0832 →
Continuity (3)
Division 14019395 · Sep 5, 2013
Provisional Application 61169047 · Sep 5, 2012
Related Publication 20170031888A1 · Feb 2, 2017