-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Update Table.php #39489
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
Update Table.php #39489
Conversation
Query requires back-quoted table name to acommodate for table names with special characters.
|
I have tested this item 🔴 unsuccessfully on 158adff This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/39489. |
|
There are some more code places that must be fixed via At least methods I didn't save or update and so on then. The first fix of this pr ( |
|
@Kurantje |
quoteName in methods checkIn(), checkOut()
Legal table names with special characters throw exceptions. QuoteName each query avoids fixes this
|
@ReLater, Thanks for highlighting. Submitted Table.php again, now with all sql table references with QuoteName |
|
@Kurantje |
|
Oops! Didn't mean to. Will reopen. Thanks! |
|
I have tested this item ✅ successfully on 4e50a2d
|
|
I have tested this item ✅ successfully on 4e50a2d This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/39489. |
|
RTC. Thanks ! This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/39489. |
|
Thank you |
Query requires back-quoted table name to acommodate for table names with special characters.
Pull Request for Issue #39487
Summary of Changes
On line 734 it states: ->from($this->_tbl);
This should be: ->from($this->_db->quoteName($this->_tbl));
Testing Instructions
Create a component using a table with a special character, e.g. da-events
Go to ...?option=&view=event&layout=edit&id=1 to get the first element from the table
Actual result BEFORE applying this Pull Request
Invalid mySQL query exception
Expected result AFTER applying this Pull Request
In edit.php get the data from the da-events table for id=1
Link to documentations
Please select:
Documentation link for docs.joomla.org:
No documentation changes for docs.joomla.org needed
Pull Request link for manual.joomla.org:
No documentation changes for manual.joomla.org needed