-
-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Empty target column in database #266
Comments
The website has no redirect from http to https. Can this lead to this anomaly? |
While almost all browsers do, not all webservers enforce a The target website does not seem to use JS tracking, so we use statify/inc/class-statify-frontend.php Lines 48 to 50 in 5fcea33
And we just have a fallback for failed sanitization, not for empty content: statify/inc/class-statify-frontend.php Lines 57 to 59 in 5fcea33
(which I don't thinks is really elegant, because the JS-content might contain any kind of bogus data which fails sanitization, so I'd personally prefer But a few lines below we should opt-out on empty or invalid targets: statify/inc/class-statify-frontend.php Lines 65 to 67 in 5fcea33
|
|
We are not talking about an empty referrer, but an empty target... 🤔 |
Oh, I mixed this up ... sorry, you are right. |
But the mentioned website redirects from without to the one with trailing slash ... |
Only path that comes to my mind would be a valid URI like statify/inc/class-statify-frontend.php Line 95 in 5fcea33
if ( $wp_rewrite->use_trailing_slashes ) {
$url = trailingslashit( $url );
} else {
$url = untrailingslashit( $url );
} calling No idea how to achieve this 🤷 |
No. Likely your browser does, but a call without slash with a slightly more primitive client gives a 200 response immediately:
So here is no client-side redirection, but in general you are right, the path should always be root, i.e. I would recommend observing the behavior and if it does not grow, just ignore or remove the 31 entries. And there seems to be a 301 redirection from HTTPS to HTTP now, maybe added after your advice:
|
This does WordPress if the Site/Home is set to https, for pages WP doesn't do this by default: |
Describe the bug
A user in the support forums reported that his website has empty target columns in the database:
https://wordpress.org/support/topic/beste-inhalte-2/ (German)
What can cause this issue? Any idea?
Do I need to ask more about the environment, then please add a comment?
The text was updated successfully, but these errors were encountered: