? ? Success

User tests: Successful: Unsuccessful:

avatar csthomas
csthomas
28 Jun 2017

Pull Request for Issue #16812

Summary of Changes

This is minimalist version of my previous PR #16875

  1. Fix B/C - preserve > character
  2. Fix notice:
Notice: A non well formed numeric value encountered in .../libraries/joomla/filter/input.php on line 1202 divHello "Joomla"

tested as:

$_REQUEST['test'] = '<div&#x003e;Hello &quot;Joomla&quot;&#60;/div>';
echo JFactory::getApplication()->input->getString('test', '');

Testing Instructions

Add in your template index.php a php code like:

$_REQUEST['test'] = '<div&#x003e;Hello &quot;Joomla&quot;&#60;/div>';
echo JFactory::getApplication()->input->getString('test', '');

and

$_REQUEST['test'] = 'Menu > Modules';
echo JFactory::getApplication()->input->getString('test', '');

Expected result

Input methods getString() or getHtml() does not remove alone >.
There is no PHP Notice mentioned above.

Actual result

Input methods getString() or getHtml() removes > and this is B/C break.
PHP Notice mentioned above exists.

Documentation Changes Required

No

avatar csthomas csthomas - open - 28 Jun 2017
avatar csthomas csthomas - change - 28 Jun 2017
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 28 Jun 2017
Category Libraries Unit Tests
avatar joeforjoomla
joeforjoomla - comment - 2 Jul 2017

Any update on this? Is this issue going to be merged and fixed before the release of 3.7.3?

avatar rdeutz
rdeutz - comment - 2 Jul 2017

some tests would be good

avatar joeforjoomla
joeforjoomla - comment - 2 Jul 2017

I tested this item successfully.

The > is preserved as in 3.7.2. It's still stripping the < char, but this can be left for 3.7.4 and deeper analysis. This PR at least preserve the current 3.7.2 behavior.

avatar franz-wohlkoenig franz-wohlkoenig - alter_testresult - 2 Jul 2017 - joeforjoomla: Tested successfully
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 2 Jul 2017

@joeforjoomla i altered your Test as successfully at Issue Tracker.

avatar rdeutz rdeutz - change - 3 Jul 2017
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2017-07-03 07:30:38
Closed_By rdeutz
avatar rdeutz rdeutz - close - 3 Jul 2017
avatar rdeutz rdeutz - merge - 3 Jul 2017

Add a Comment

Login with GitHub to post a comment