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.
My Amazon Affiliate Link
Fast vBulletin VPS Host:
This site is hosted by 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
-
That "XSS Auditor refused to execute a script" error in the screenshot is gone. That's what was breaking the Go to Bottom button. It refused to execute the Go to Bottom script.Originally posted by Snowhog View PostSussed it out. Here is the output when clicking on the Save button.

My Amazon Affiliate Link
Fast vBulletin VPS Host:
This site is hosted by IONOS
- Top
- Translate
- Bottom
- Likes 1
Comment
Latest Posts
Collapse
-
Reply to some ideas for new modsin Chit Chatby desmomax
I finally created a mod that allows you to add an icon to each post with options for sharing on other platforms. I honestly thought it was absurd that...
Today, 03:59 AM -
by flohseHi Glenn, what do you think about adding "Like Counts" similar to "Like Counts on Postbit and Profile" (when this mod is in use) in...Yesterday, 11:28 PM
-
Reply to push notification prompt?by desmomaxhy glenn
have you thought about this?Yesterday, 05:44 AM

Comment