User tests: Successful: Unsuccessful:
Previously it would raise undefined string offset error when the passed value is "\" only, as there was no length check for the $path
variable.
If testing on Windows:
JPath::clean('\\');
If testing on any OS, including Windows:
JPath::clean('\\', '\\');
You can see the php error message: undefined string offset 1
Make sure you have error reporting enabled when you test this.
Status | New | ⇒ | Pending |
Labels |
Added:
?
|
Category | ⇒ | Libraries |
I have tested this item successfully on ccf7ce1
Thanks. works here with the patch.
RTC. Thanks.
Status | Pending | ⇒ | Ready to Commit |
Labels |
Added:
?
|
Milestone |
Added: |
Thank you @izharaazmi and testers!
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2016-05-08 13:44:10 |
Closed_By | ⇒ | Kubik-Rubik |
Labels |
Removed:
?
|
I have tested this item successfully on ccf7ce1
This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/10066.