?
avatar AdityaTaware
AdityaTaware
19 Oct 2019

Steps to reproduce the issue

  1. Go to the admin site.
  2. Click on the User menu from the top right side.
  3. Click on Save and Close or Close button.
  4. The error occurs.

If you go from the user menu then it works fine.

Expected result

The changes should saved without any error

Actual result

Getting an error - An error has occurred. 0

System information (as much as possible)

Windows 10
Could sitescreen shot 2019-10-19 at 09 05 19

Additional comments

Some times getting below 500 error string on screen

Error: "500 "https://adityajoomlafour.joomla.com/administrator/index.php����[ۏX��W��ۙ�Y" is not valid header value" is not valid header value: "https://adityajoomlafour.joomla.com/administrator/index.php����[ۏX��W��ۙ�Y" is not valid header value

avatar AdityaTaware AdityaTaware - open - 19 Oct 2019
avatar joomla-cms-bot joomla-cms-bot - labeled - 19 Oct 2019
avatar AdityaTaware AdityaTaware - change - 19 Oct 2019
The description was changed
avatar AdityaTaware AdityaTaware - edited - 19 Oct 2019
avatar brianteeman
brianteeman - comment - 19 Oct 2019

I have not been able to replicate this

avatar Quy
Quy - comment - 21 Oct 2019

To reproduce

Error: "500 "http://localhost/joomla-cms-4.0-dev/administrator/index.php����[ۏX��W��۝�[� ��Y]�X\��X��\" is not valid header value" is not valid header value: "http://localhost/joomla-cms-4.0-dev/administrator/index.php����[ۏX��W��۝�[� ��Y]�X\��X��\" is not valid header value
  • go to Content > Articles
  • go to User Menu > Edit Account (in the upper right hand corner)
  • click Close button
avatar Quy
Quy - comment - 21 Oct 2019

Here is the return URL:

aHR0cDovL2xvY2FsaG9zdC9qb29tbGEtY21zLTQuMC1kZXYvYWRtaW5pc3RyYXRvci9pbmRleC5waHA/b3B0aW9uPWNvbV9jb250ZW50JnZpZXc9YXJ0aWNsZXM=
<input type="hidden" name="return" value="<?php echo $input->getCmd('return'); ?>">

getCmd accepts only A-Za-z0-9.-_ therefore = and / are stripped in the above URL as seen below.

<input type="hidden" name="return" value="aHR0cDovL2xvY2FsaG9zdC9qb29tbGEtY21zLTQuMC1kZXYvYWRtaW5pc3RyYXRvci9pbmRleC5waHAb3B0aW9uPWNvbV9jb250ZW50JnZpZXc9YXJ0aWNsZXM">

Would getString be an acceptable fix?

avatar SharkyKZ
SharkyKZ - comment - 22 Oct 2019

No, use BASE64 filter.

avatar Quy
Quy - comment - 22 Oct 2019

Can you please provide code? Thanks.

avatar SharkyKZ
SharkyKZ - comment - 22 Oct 2019

$input->get('return', null, 'BASE64') or $input->getBase64('return')

avatar Quy Quy - close - 23 Oct 2019
avatar Quy Quy - change - 23 Oct 2019
Status New Closed
Closed_Date 0000-00-00 00:00:00 2019-10-23 03:05:20
Closed_By Quy
avatar Quy
Quy - comment - 23 Oct 2019

Please test PR #26776


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/26651.

Add a Comment

Login with GitHub to post a comment