Ralf Posted May 1, 2023 Share Posted May 1, 2023 Hello together, have any of you ever tried to insert a Microsoft Teams meeting link into a URL field??? A site I maintain would like to provide meeting URLs via Processwire. I have created a URL field for this but now when I insert such a Microsoft Outlook generated URL in the backend, I get this error: Is this a bug or a feature? or can anyone confirm this? For example, a URL looks like this:https://teams.microsoft.com/l/meetup-join/19%3ameeting_OTY0NjAwYmUtOGIxNy11OGI5LWExMWMtNThlMmRmZGU5YTZl%40thread.v2/0?context={"Tid"%3a"36cabc20-3b53-4a0d-be6d-1fb3a94f9786"%2c"Oid"%3a"a508db2a-aff9-475e-9cf2-e51581a58320"} Thanks Ralf Link to comment Share on other sites More sharing options...
Jan Romero Posted May 1, 2023 Share Posted May 1, 2023 There is a setting for url fields to allow or disallow quotation marks. I’m pretty sure it defaults to disallowing them. Have you checked that? 2 Link to comment Share on other sites More sharing options...
Ralf Posted May 13, 2023 Author Share Posted May 13, 2023 @Jan Romero, thank you for your answer. For the Field template, do you mean the setting under the Details tab? or more specifically, this one? Yes, here I have already played through both options (Yes and No). Furthermore, in the Details tab under Text settings - Text formatters I have played through the options with and without "HTML Entity Encoder" (also with the point from above) and unfortunately, when I save, I ALWAYS get the error message from my first post... ? Do you or others have any other ideas?? Or could you try the teams link from above to save in an installation what happens then? Then it would be at least already clarified whether it is a fundamental problem or it is only on my installation? Thanks in advance Ralf Postscript: Strange ... despite error message it saves me the meeting URL. And if I then click a second time on "Save", then I get this hint ... ? this is a bit confusing now. Link to comment Share on other sites More sharing options...
matjazp Posted May 13, 2023 Share Posted May 13, 2023 It's not just quotation marks. In setAttributeValue() in InputfieldURL.module: input (dirty) value: https://teams.microsoft.com/l/meetup-join/19%3ameeting_OTY0NjAwYmUtOGIxNy11OGI5LWExMWMtNThlMmRmZGU5YTZl%40thread.v2/0?context={"Tid"%3a"36cabc20-3b53-4a0d-be6d-1fb3a94f9786"%2c"Oid"%3a"a508db2a-aff9-475e-9cf2-e51581a58320"} sanitized value using sanititer()->url() method: https://teams.microsoft.com/l/meetup-join/19:meeting_OTY0NjAwYmUtOGIxNy11OGI5LWExMWMtNThlMmRmZGU5YTZl@thread.v2/0?context={"Tid"%3a"36cabc20-3b53-4a0d-be6d-1fb3a94f9786"%2c"Oid"%3a"a508db2a-aff9-475e-9cf2-e51581a58320"} rawurldecoded value: https://teams.microsoft.com/l/meetup-join/19:meeting_OTY0NjAwYmUtOGIxNy11OGI5LWExMWMtNThlMmRmZGU5YTZl@thread.v2/0?context={"Tid":"36cabc20-3b53-4a0d-be6d-1fb3a94f9786","Oid":"a508db2a-aff9-475e-9cf2-e51581a58320"} As sanitized and rawurldecoded values differ, PW returns an error. I'm not sure how te deal with that, perhaps open an issue report? What could you do: a) use plain text field, b) instruct users to rawurldecode the url ? 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now