bgame-hunter / cpassman

Automatically exported from code.google.com/p/cpassman
0 stars 0 forks source link

Escape Quotes in Description field #256

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Use quotes within the description field
2.
3.

What is the expected output? What do you see instead?
Item description containing quotes

What version of the product are you using?
1.82

On what operating system? With what Browser (IEx, FFx, ...)
FF8,IE8

Please provide any additional information below.

I understand 1.82 is no longer being managed. I just want to know a solution to 
enable quotes within the description field. Teampass 2.0 apparently does not 
have this problem. I just need to know what I can do to fix this in 1.82.

Original issue reported on code.google.com by hexxamil...@gmail.com on 15 Feb 2012 at 9:03

GoogleCodeExporter commented 8 years ago
I found that item descriptions from 1.82 after upgrading to teampass 2.* still 
error when searching due to "quotes" in the description fields. If I edit them 
directly in the database by escaping the quotes, then the error clears. 
However, this is not an optimal solution. Can the code be optimized to escape 
characters or make the description field free form, text? 

Original comment by hexxamil...@gmail.com on 23 Feb 2012 at 10:39

GoogleCodeExporter commented 8 years ago
Between the 2 versions, 2 big differences exist.
It is that exchanges are entirely encrypted, which makes disappearing such 
issues and that DB is now in UTF8.

For 1.82, of course the code can be adapted in order to correct it. Try to 
sanitize the description field before sending it to the server and once on the 
server, reconstruct the original string.

Original comment by nils.cpa...@gmail.com on 25 Feb 2012 at 8:28

GoogleCodeExporter commented 8 years ago
Do you have a suggestion or example on how I might "sanitize" the description 
field before sending to the server? Other than manually weeding through every 
item and checking the description field for characters such as quotes and 
dollar signs. 

Original comment by hexxamil...@gmail.com on 5 Mar 2012 at 6:51