Make WordPress Core

Opened 15 years ago

Closed 15 years ago

#9764 closed defect (bug) (worksforme)

Truncation of last letter in modified permalinks?

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

Description (last modified by markjaquith)


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)

#1 @Denis-de-Bernardy
15 years ago

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

#2 follow-up: @markjaquith
15 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?

#3 in reply to: ↑ 2 @joshuamcgee
15 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.


#4 @Denis-de-Bernardy
15 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.

#5 @Denis-de-Bernardy
15 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

#6 @Denis-de-Bernardy
15 years ago

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