Skip to content

Fix double quote guard #56

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jul 27, 2020
Merged

Fix double quote guard #56

merged 3 commits into from
Jul 27, 2020

Conversation

DvirDukhan
Copy link
Contributor

No description provided.

@DvirDukhan DvirDukhan requested review from gkorland and swilly22 July 24, 2020 20:20
@codecov
Copy link

codecov bot commented Jul 24, 2020

Codecov Report

Merging #56 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #56   +/-   ##
=======================================
  Coverage   90.74%   90.74%           
=======================================
  Files           6        6           
  Lines         108      108           
  Branches        6        6           
=======================================
  Hits           98       98           
  Misses         10       10           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6c44609...09d5f3a. Read the comment docs.

src/graph.js Outdated
if (paramValue[0] != '"') strValue += '"';
strValue += paramValue;
if (paramValue[paramValue.length - 1] != '"') strValue += '"';
if ((paramValue[paramValue.length - 1] != '"') || ((paramValue[paramValue.length - 1] == '"') && (paramValue[paramValue.length - 2] == '\\'))) strValue += '"';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if (!paramValue.endsWith('"') || paramValue.endsWith('\\"') )

'test"abc',
"test\"abc2",
"\"testabc3",
"testabc4\""
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you mean?

             "testabc4\\"" 

@gkorland gkorland linked an issue Jul 26, 2020 that may be closed by this pull request
@swilly22 swilly22 merged commit c2b9d55 into master Jul 27, 2020
@swilly22 swilly22 deleted the fix_double_quate_guard branch July 27, 2020 09:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

graph.query wont escape params
3 participants