WordPress.org

Make WordPress Core

Opened 6 years ago

Closed 6 years ago

#9764 closed defect (bug) (worksforme)

Truncation of last letter in modified permalinks?

Reported by: joshuamcgee Owned by: ryan
Milestone: Priority: normal
Severity: normal Version: 2.7.1
Component: Permalinks Keywords: needs-testing
Focuses: Cc:

Description (last modified by markjaquith)

Hi,

Anyone else seeing a problem that I can duplicate via the following steps?

  1. Type a title for a post
  2. Move to the text entry box, populating the Permalink edit field
  3. Modify the permalink to something that ends with "n"
  4. Publish

When this happens, I end up with a permalink with a truncated last letter. For instance, if I enter "some incantation", I get a permalink ending in "/some-incantatio/"

Other terminal letters fail sometimes, but (among my samples) 'n" always does.

There can't be something ridiculous, along the lines of a regexp ending in /.*n$/ instead of /.*\n$/ or something, could it? Or some PHP/JS parallel of a chop/chomp problem?

If this is a repost, sorry.

Change History (6)

comment:1 @Denis-de-Bernardy6 years ago

  • Component changed from General to Permalinks
  • Milestone changed from Unassigned to 2.8
  • Owner changed from anonymous to ryan

comment:2 follow-up: @markjaquith6 years ago

  • Description modified (diff)

Cannot duplicate on 2.7.1 or trunk as of this writing.

Do you have mod_security enabled? How about a plugin that could be effecting this?

comment:3 in reply to: ↑ 2 @joshuamcgee6 years ago

Replying to markjaquith:

Cannot duplicate on 2.7.1 or trunk as of this writing.

Drat. Neither can I, at this moment. It does happen, though. Close if you must, and I will try to find a more reproducible scenario.

Thanks.

comment:4 @Denis-de-Bernardy6 years ago

Hint: try non-utf7 chars. I've seen similar things happen too -- and not just for a single letter -- with foreign chars while looking into a separate ticket.

I had picked them up on the pravda's site, in case you need varieties of test cases. it doesn't happen with all chars, but it definitely happens with some.

comment:5 @Denis-de-Bernardy6 years ago

  • Keywords needs-testing added; truncation regexp regexps removed
  • Milestone changed from 2.8 to Future Release

moving this to Future, pending more information

comment:6 @Denis-de-Bernardy6 years ago

  • Milestone Future Release deleted
  • Resolution set to worksforme
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.