Don't fail on Facebook junk in URL #3240
Labels
No labels
backend
critical
defect
duplicate
enhancement
fixed
frontend
general
invalid
major
minor
normal
oxjs
pandora_client
python-ox
task
trivial
wontfix
worksforme
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: 0x2620/pandora#3240
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Example:
FB link https://pad.ma/grid/date/list==zi:Afghan_Films becomes:
https://pad.ma/grid/date/list==zi:Afghan_Films%3Ffbclid%3DIwAR25UNq97L1TrdGAH-GpfERnNXjt7czS6LXuiy7UeMTrUcYlNjOnn8IFCAM
fixed in https://wiki.0x2620.org/changeset/ffeee38d7d263727e95c151e317778399a1f6922/oxjs
The rexexp doesn't handle "-" properly:
Facebook:
https://pad.ma/LAA?fbclid=IwAR2XQYZpziahJTdFYVw_9_K_ZzPzvy6FpXOgFZUgkYZFwkL-b1Fbkhu7l4Q
Pad.ma:
https://pad.ma/grid/created/LAA-b1Fbkhu7l4Q
Everything after "?fbclid=" should be dropped.
Context see screenshot.
Changing the URL to /LAA/info resulted in a faulty URL too, and Facebook didn't even generate the little preview box. Just said "Pad.ma".
Attachment Screen Shot 2020-08-06 at 8.10.31 AM.jpg (196468 bytes) added
There is another error:
https://pad.ma/JRM/player/Q?fbclid=IwAR0WbZ4AHNlPcYRG35iOv_YlltjZ_xRUj-BmywHKwrGkUxvSIByZPkJpJWs
becomes:
https://pad.ma/JRM/player/W
In e497e7a/oxjs: