Conversation
core/templates/layout.user.php
Outdated
There was a problem hiding this comment.
Div is not allowed to be in the body of span, I suppose you can change the span with id "expand" to a div to solve this.
There was a problem hiding this comment.
It wasn't introduced by you but better solve it now :)
|
@Kondou-ger any update? |
|
@blizzz I'm still wating for @LukasReschke's opinion to escaping this, and another string. But looks like he forgot me 😄 |
|
Nah, not forgotten. Just a lot of other stuff to do ;-) |
|
State of this? |
|
#7749 (comment) is the state of this |
|
@LukasReschke Pingeling. |
9f11e5b to
c2fe2da
Compare
|
Change to |
|
@LukasReschke since you're not answering me in IRC to do this sort-of confidential I'll just spit this out (it's pretty specific – so if anyone can actually abuse this, good job …), regarding the "other string" from #7749 (comment). How about escaping this: https://github.com/owncloud/core/blob/master/core/js/jquery.avatar.js#L74 ? LDAP Names that have a |
|
urlencode - but this us not exploitable there since the username !== displayname |
|
Finally worked on this. |
|
🚀 Test PASSed. 🚀 |
* fix #7484 * use UID, css, and div instead of span
9287c34 to
a10b255
Compare
|
I squashed your commits and added the avatardiv-shown class, because this causes the display name to hide on small screens. Works 👍 |
|
@wakeup @luckydonald @miicha @danbartram @oparoz Feel free to review this. Just check out this branch and set an avatar for the user in the personal settings. then check if it appears in the header and the display name hides on small screens. |
|
The inspection completed: 2 new issues, 1 updated code elements |
|
This works for me. 👍 |
|
🚀 Test PASSed. 🚀 |
Load avatar in header via PHP
Load the avatar in the header via PHP instead of JS.
I can't really test this, because I get #7707 when I try to upload an avatar and thus can't upload avatars …
@owncloud/designers @jbtbnl