[wp-trac] [WordPress Trac] #57032: Percent sign in site title leads to signing up new users not working

WordPress Trac noreply at wordpress.org
Tue Nov 8 12:03:35 UTC 2022


#57032: Percent sign in site title leads to signing up new users not working
------------------------------------+-----------------------------
 Reporter:  pekka.gaiser            |      Owner:  (none)
     Type:  defect (bug)            |     Status:  new
 Priority:  normal                  |  Milestone:  Awaiting Review
Component:  Login and Registration  |    Version:  6.0.3
 Severity:  normal                  |   Keywords:
  Focuses:                          |
------------------------------------+-----------------------------
 When a web site title contains a percent sign, e.g.

 {{{
 Brand name - 100% organic
 }}}

 the process of signing up a new user in `/wp-admin/user-new.php` will fail
 with a fatal error, probably because the percent sign is interpreted as a
 placeholder by `sprintf()` in /wp-includes/ms-functions.php around line
 1105:

 {{{
 Fatal error: Uncaught ArgumentCountError: 3 arguments are required, 2
 given in
 (...)/sites/wheaty_v3/htdocs/wp-includes/ms-functions.php:1105Stack
 trace: #© (...)/htdocs/wp-includes/ms-functions.php(1105):
 sprintf(' Hallo, Indu wurde..
 , 'https://www.whe...#1
 (...)/htdocs/wp-includes/class-wp-hook.php(307):
 wpmu_signup_user_notification('(...)','(...)..
 '36db891bc11cbbc..
 , Array) #2
 (...)/htdocs/wp-includes/class-wp-hook.php(331):
 WP_Hook->apply_filters(",Array)#3(...)/htdocs/wp-
 includes/plugin.php(476):WP_Hook->do_action(Array)#4
 /(...)/htdocs/wp-includes/ms-functions.php(892):
 do action('after_signup_us...,
 '(...)', '(...)
 '36db891bc11cbbc..., Array) #5
 (...)/wheaty_v3/htdocs/wp-admin/user-new.php(226):
 wpmu_signup_user('oliver2', 'technik at hansetr..
 , Array) #6 {main} thrown in
 /(...)/htdocs/wp-includes/ms-functions.php on line
 1105
 }}}

 Presumably, the web site title needs to be escaped somewhere in the
 `apply_filters()` call.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/57032>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list