Add stripslashes to mssql result columns#13534
Conversation
|
Missing testing instruction. This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/13534. |
|
Test instruction added. There is a lots of problems with mssql. This PR only fix a few of them. "This PR fix only SELECT queries". |
|
I have tested this item ✅ successfully on f57b5ff This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/13534. |
|
I have tested this item ✅ successfully on f57b5ff This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/13534. |
|
RTC This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/13534. |
|
Just one question, you removed loadResult from the class because the JDatabaseDriver class does the job ok? |
|
yes |
|
@rdeutz isn't the removal of a public function a b/c break? |
|
It is not removed because it is inherited from JDatabaseDriver |
|
@csthomas in such case ignore my comment |
…sets-option * 'staging' of github.com:roland-d/joomla-cms: (136 commits) Clean up old code in cache.php file (joomla#12183) Fixing search for MySQL (joomla#13571) Unnecessary double quotes in /libraries/joomla (joomla#13372) Some improvements in tests #3: (joomla#13402) It's 2017. Happy New Year Fixing a typo in gallery plugin language files Add stripslashes to mssql result columns. (joomla#13534) remove unneeded space from btn-group/radio/checkboxes (joomla#12003) typo (joomla#13563) Remove default value from the field params to inherit from plugin Remove multiple parameter from user field Fix name of component helper in fieldshelper (joomla#13539) remove duplicated code (joomla#13550) Fix invalid string that causes the ini file not to load (joomla#13544) Catch "expects parameter 2 to be string" error Take complete context for group lookup (joomla#13538) [Mssql] Fix syntax error when installing a language in backend (joomla#13512) Normalize #__categories table across 3 db systems and add default values (joomla#13514) Normalize #__ucm_content table across 3 db systems and add default values (joomla#13513) Update config.xml (joomla#13503) ...
|
After more deep searching I have found this PR fixes errors but does not do it in the right way. At the end I have found that After I changed |
Pull Request for Issue #13507 .
Summary of Changes
SQL Server database always escape backslash in result.
This PR
stripslashesfor each column from result query.Testing Instructions
TEST 1
Before patch
After patch the warning does not appears and you see some information.
TEST 2
Before patch
\"\\", next\\\\", etc.After patch the number of backslashes are not increased on each save.
TEST 3
Before patch:
Link A Text(Images and Links Tab):A""B.Error decoding JSON data: Syntax error.After patch
Documentation Changes Required
N/A