Download & Extend

Fix role page weight title

Project:Drupal core
Version:8.x-dev
Component:user.module
Category:bug report
Priority:normal
Assigned:droplet
Status:closed (fixed)
Issue tags:needs backport to D7, Quick fix

Issue Summary

When module Locale and other language is enable ...

at: http://xxx/admin/people/permissions/roles

Warning: htmlspecialchars(): Invalid multibyte sequence in argument 在 check_plain() (行 1476 在 XXX/includes/bootstrap.inc).

./modules/user/user.admin.inc: line 840
--'#title' => t('Weight for @title', array('@title' => $name['label'])),
++'#title' => t('Weight for @title', array('@title' => $name)),

Comments

#1

Title:Warning: htmlspecialchars(): Invalid multibyte sequence... at line 1476 in bootstrap.inc» user weight title big
Status:active» needs review

It's not a htmlspecialchars bug.

#2

Version:7.0» 7.x-dev
AttachmentSizeStatusTest resultOperations
user.patch595 bytesIdlePASSED: [[SimpleTest]]: [MySQL] 31,576 pass(es).View details

#3

Assigned to:duceng» droplet

#4

Title:user weight title big» Fix role page weight title

#6

Version:7.x-dev» 8.x-dev

fix D8 first, same patch #2

#7

It works! finally I got rid of the messages.
Thanks!!

#8

Status:needs review» reviewed & tested by the community

obviously, a simple fixes. RTBC by #7

#9

Issue tags:+needs backport to D7

#10

Status:reviewed & tested by the community» fixed

Weird. I can't possibly imagine how the code that's there now could be working.

Normally I'd ask for a test, but we're unlikely to ever break this again.

Committed and pushed to 8.x and 7.x. Thanks.

#11

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

#12

thank god, working

nobody click here