Skip to content
This repository has been archived by the owner on Sep 4, 2019. It is now read-only.

Escaped double quotes for pim.contacts #644

Open
wants to merge 1 commit into
base: next
Choose a base branch
from

Conversation

DanielAudino
Copy link
Contributor

To remove error when finding a contact that contains special characters

@@ -673,7 +673,7 @@ bool PimContactsQt::lessThan(const bbpim::Contact& c1, const bbpim::Contact& c2)
return temp;
}
std::string PimContactsQt::replaceString(const std::string& s) {
std::string temp = replaceAll(replaceAll(replaceAll(replaceAll(s), "\n", "\\\\n"), "\r", ""), "\t", "\\\\t");
std::string temp = replaceAll(replaceAll(replaceAll(replaceAll(replaceAll(s), "\n", "\\\\n"), "\r", ""), "\t", "\\\\t"), "\"", "\"");
Copy link
Contributor

Choose a reason for hiding this comment

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

Wouldn't this make more sense as a regexp? This seems ugly.

@rwmtse
Copy link
Contributor

rwmtse commented Apr 1, 2013

@cdelcol
Copy link
Contributor

cdelcol commented Apr 1, 2013

Any chance that it is related?
https://przilla.ott.qnx.com/bugzilla/show_bug.cgi?id=308748

@rwmtse
Copy link
Contributor

rwmtse commented Apr 1, 2013

@cdelcol It is

@cdelcol
Copy link
Contributor

cdelcol commented Apr 1, 2013

@rwmtse you beat me to it :) i'll update the PR.

@ejzn
Copy link
Contributor

ejzn commented Apr 11, 2013

@DanielAudino @rwmtse Are we putting this into the Cordova branch of things....?

@bryanhiggins
Copy link
Contributor

Thanks for catching that @erikjohnzon

This needs to go into cordova-blackberry-plugins otherwise no one will get in unless they're building from the GitHub repo.

@EricLeiLi please make sure this is carried into the core plugin as well if necessary

@cdelcol
Copy link
Contributor

cdelcol commented Apr 24, 2013

@EricLeiLi @haahmad did this change get into the new repos? can someone update the PR?

https://przilla.ott.qnx.com/bugzilla/show_bug.cgi?id=308748

cc @grahamzibar

@haahmad
Copy link
Contributor

haahmad commented Apr 24, 2013

@cdelcol No, it has not. I will open a pull request into cordova-blackberry-plugins, then use the newly built so file for pim.contacts and the cordova contacts plugins

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants