No additional errors thrown after clicking the Go to Bottom button. This is the error thrown when clicking the Save button.
Announcement
Collapse
No announcement yet.
Administrator Notes in AdminCP tweak request
Collapse
X
-
- Top
- Translate
- Bottom
-
I have Firefox (v95.0.2 (64-bit)) on my iMac and I logged in to the AdminCP and launched the Browser Console. This is what it displayed:
Clicking on the Save or Go to Bottom button didn't add anything else to the Browser Console. The Go to Bottom button continued to work.The Linux Community has given me much. I do what I can to return the favor!
- Top
- Translate
- Bottom
Comment
-
These are from Chrome on my iMac. First is taken right after logging in to AdminCP. Second is after I clicked the Go to Bottom button first (no additional errors thrown) and then the Save button, which generated a new error.
But the Go to Bottom button remained active and continued to function.The Linux Community has given me much. I do what I can to return the favor!
- Top
- Translate
- Bottom
Comment
-
It looks like Safari is blocking the javascript in the Go to Bottom button after clicking Save button because of the XSS Auditor being enabled. It is expecting that the server returns "X-XSS-Protection" HTTP Header in the response for saving the notes in order to disable XSS Auditor from filtering scripts. Only Safari is doing this. Other browsers such as Chrome, Firefox and Edge are not or has stopped doing this. It is no longer recommended but Safari is still doing it. Please see warning about "X-XSS-Protection" being unnecessary at https://developer.mozilla.org/en-US/...XSS-Protection.
In order to satisfy Safari, you'd have to disable XSS Auditor (for that Save Notes HTTP response only) by adding this code to the same PHP file you edited earlier.- Find this line:
PHP Code:if ($_POST['do'] == 'notes')
- Inside that code block enclosed by curly braces { and }, find this line:
PHP Code:$_REQUEST['do'] = 'home';
- Below that line, add this code
PHP Code:header("X-XSS-Protection: 0;"); // disable XSS Auditor which Safari needs
- Save the file.
Last edited by glennrocksvb; 02-02-2022, 06:54 PM.Helpful? Donate. Thanks!
Fast VPS Host for vBulletin:
A2 Hosting & IONOS
- Top
- Translate
- Bottom
Comment
- Find this line:
-
- Top
- Translate
- Bottom
Comment
-
Added the extra line and tested. Yes, both buttons work. Haven't opened the JavaScript Console to see what gets reported; I'll do that later. Heading off to bed now.
Thank you once again!The Linux Community has given me much. I do what I can to return the favor!
- Top
- Translate
- Bottom
- Likes 1
Comment
-
For your information. On my iMac using Safari.
The first two IndexSizeError entries are present when I launch the JavaScript Console immediately after logging in to the AdminCP. The third IndexSizeError entry appears when I click the Save Button. No errors are added just clicking on the Go to Bottom button.The Linux Community has given me much. I do what I can to return the favor!
- Top
- Translate
- Bottom
Comment
-
Originally posted by Snowhog View PostSussed it out. Here is the output when clicking on the Save button.
Helpful? Donate. Thanks!
Fast VPS Host for vBulletin:
A2 Hosting & IONOS
- Top
- Translate
- Bottom
- Likes 1
Comment
Users Viewing This Page
Collapse
There is 1 user viewing this forum topic.
- Guest
Latest Posts
Collapse
-
Comment on Topic Starter Ribbon for vBCloudby glennrocksvbThanks for confirming the fix works.Today, 08:20 AM
-
Get Affordable and Fast VPS for vBulletin -
Reply to Topic Starter Ribbon for vBCloudby glennrocksvbI have updated the template code in the first post. Please try it again.Today, 06:38 AM
Comment