Make WordPress Core

Opened 18 months ago

Last modified 18 months ago

#63282 new defect (bug)

Inconsistent post name processing

Reported by: ArtZ91 Owned by:
Priority: normal Milestone: Awaiting Review
Component: Permalinks Version: 6.7.2
Severity: normal Keywords:
Cc: Focuses:

Description

On apache server the post names with symbol № and some others may cause HTTP ERROR 403.

Gutenberg editor removes that sumbol from post name by default.
But classic editor saved post name as is.

Classic editor:
Post title: Post with № character
Post slug saved: post-with-№-character

Gutenberg:
Post title: Post with № character
Post slug saved: post-with-character

Change History (3)

#1 @Presskopp
18 months ago

Hi,

can you please explain more about your environment / permalink settings etc. to be able to reproduce the issue.

I tried with Classic Editor, with and without the Gutenberg Plugin, and in any case I got a slug having the № character, and no error 403.

#2 @sourav08
18 months ago

Hey There, I have checked the above issue, I am not able to reproduce the above issue consistently in the classic editor. Regardless of the editor the post slug normally contains the № character.

However I have noticed when we select the slug/modify the slug, then regardless of the editor the slug does not contain № character.

Also, one more bug/issue I noticed is that before publishing the post/page they do not have the № character in the slug preview, but once published they do have the № character, which I think is another bug in itself.

PFA the screen recording for the same.
​https://drive.google.com/file/d/12tYqkvU7C3aekRyg9y7O2yjT8X7U38rR/view?usp=drive_link

#3 @ArtZ91
18 months ago

I tested this using a plugin Classic Editor v1.6.7

Note that character № and others non-ascii can be added also in quick edit.

Server version: Apache/2.4.52 (Ubuntu)

conf sample:

<VirtualHost *:80>

        ServerName domain.com
        #ServerAlias www.domain.com
        ServerAdmin admin@domain.team
        DocumentRoot /var/www/domain.com

        <Directory /var/www/domain.com/>
            Options FollowSymLinks
            AllowOverride All
            Require all granted
        </Directory>

        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log vhost_combined

</VirtualHost>

I can't find any detailed logs for this request except default access.log line:

domain.com:443 x.x.x.x - - [15/Apr/2025:14:46:49 +0000] "GET /post-with-%E2%84%96-character/ HTTP/1.1" 403 555 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:136.0) Gecko/20100101 Firefox/136.0"

Response Headers:
HTTP/1.1 403 Forbidden
Date: Tue, 15 Apr 2025 14:43:42 GMT
Server: Apache/2.4.52 (Ubuntu)
Content-Length: 0
Keep-Alive: timeout=5, max=100
Connection: Keep-Alive
Content-Type: text/html; charset=UTF-8

Last edited 18 months ago by ArtZ91 (previous) (diff)
Note: See TracTickets for help on using tickets.