friendica.ambientedigital.org
#bug #friendica ?
Eros Zabeo
Seems that some users have had some issues with the "add link" button located under the edit area when creating a new post.
Each time an url which begins with "https" is typed the inclusion of the link doesn't work and instead of the link itself appears this text:
Array
(
)
link
14.9% english
Works fine here - can anybody else duplicate?
4.5% english
seems to be fine with me in this moment, I tried cleanzero, diabook with Iron Browser(chromium) and FF ;-)
8.2% english
@Eros Zabeo , se tu usi un'immagine al posto di un link-sito ti da quel problema lí (es. pinocchio http://s3.amazonaws.com/rapgenius/pinocchio1.gif), ma nel caso specifico dovresti usare il 'pulsantino' img. e non quello che dici tu, se tu invece usi un link che ti porta a un sito (tipo che so https://www.dropbox.com/ ) allora funziona bene con quello, prova tu stesso e poi facci sapere, penso sia questo il tuo problema ;-)
4.6% italian
It also might be specific urls triggering it, not just the http/https scheme but specific websites.
1.2% english
my problem wasn't with an image, I tryied with https://vimeo.com and didn't work. now I'm with the android app, I will try later
8.5% english
vimeo has oembed, which is often a bit more complicated than a regular link. Anybody want to give it a whirl? I'm a bit over loaded at the moment.
11.8% english
as a sidenote I can say that using the same procedure the link http://vimeo.com was working correctly, I have had problems just with the https link
16.7% english
I just made a fix and did a pull request for that.
11.1% english
I was able to duplicate that link and @Michael Vogel 's patch fixed it.

@Michael Vogel looks like my github comment didn't make it. In order to provide styling in bbcode, please block microsoft's stylesheet js eval mechanism (I forget the exact syntax, but you should be able to google it). One can inject XSS into style blocks.
4.1% english
5.9% pidgin
@Mike the Friendican Doesn't the same problem exists with "color" and "size"?
10.5% english
Right. Yes it probably does. I think if we disallow parens () for any user-supplied css params (including color and size) it should be safe. Though that doesn't let one set a background image - which might be interesting.
10.7% english
Yesterday I built a routine that removes all characters despite the ones that you want. In this case: "a" to "z", "0" to "9", ":", ";", "#" and "-". This should allow most stuff.
#
19.5% english
Performance: Database: 0.469, Network: 0.001, Rendering: 0.013, Parser: 0.009, I/O: 0.002, Other: 0.12, Total: 0.614
Report Bug