{"action":"closed","issue":{"url":"https://api.github.com/repos/SimpleMachines/SMF2.1/issues/3843","repository_url":"https://api.github.com/repos/SimpleMachines/SMF2.1","labels_url":"https://api.github.com/repos/SimpleMachines/SMF2.1/issues/3843/labels{/name}","comments_url":"https://api.github.com/repos/SimpleMachines/SMF2.1/issues/3843/comments","events_url":"https://api.github.com/repos/SimpleMachines/SMF2.1/issues/3843/events","html_url":"https://github.com/SimpleMachines/SMF2.1/issues/3843","id":200864225,"number":3843,"title":"SCEditor incorrectly formats and interprets [url] BBCode","user":{"login":"Sesquipedalian","id":191731,"avatar_url":"https://avatars.githubusercontent.com/u/191731?v=3","gravatar_id":"","url":"https://api.github.com/users/Sesquipedalian","html_url":"https://github.com/Sesquipedalian","followers_url":"https://api.github.com/users/Sesquipedalian/followers","following_url":"https://api.github.com/users/Sesquipedalian/following{/other_user}","gists_url":"https://api.github.com/users/Sesquipedalian/gists{/gist_id}","starred_url":"https://api.github.com/users/Sesquipedalian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sesquipedalian/subscriptions","organizations_url":"https://api.github.com/users/Sesquipedalian/orgs","repos_url":"https://api.github.com/users/Sesquipedalian/repos","events_url":"https://api.github.com/users/Sesquipedalian/events{/privacy}","received_events_url":"https://api.github.com/users/Sesquipedalian/received_events","type":"User","site_admin":false},"labels":[{"id":121006718,"url":"https://api.github.com/repos/SimpleMachines/SMF2.1/labels/Editor","name":"Editor","color":"d4c5f9","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/SimpleMachines/SMF2.1/milestones/5","html_url":"https://github.com/SimpleMachines/SMF2.1/milestone/5","labels_url":"https://api.github.com/repos/SimpleMachines/SMF2.1/milestones/5/labels","id":1203187,"number":5,"title":"Beta 3","description":"","creator":{"login":"live627","id":431799,"avatar_url":"https://avatars.githubusercontent.com/u/431799?v=3","gravatar_id":"","url":"https://api.github.com/users/live627","html_url":"https://github.com/live627","followers_url":"https://api.github.com/users/live627/followers","following_url":"https://api.github.com/users/live627/following{/other_user}","gists_url":"https://api.github.com/users/live627/gists{/gist_id}","starred_url":"https://api.github.com/users/live627/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/live627/subscriptions","organizations_url":"https://api.github.com/users/live627/orgs","repos_url":"https://api.github.com/users/live627/repos","events_url":"https://api.github.com/users/live627/events{/privacy}","received_events_url":"https://api.github.com/users/live627/received_events","type":"User","site_admin":false},"open_issues":6,"closed_issues":129,"state":"open","created_at":"2015-07-11T01:16:53Z","updated_at":"2017-01-25T03:58:45Z","due_on":null,"closed_at":null},"comments":5,"created_at":"2017-01-15T11:50:59Z","updated_at":"2017-01-25T03:58:45Z","closed_at":"2017-01-25T03:58:45Z","body":"It is easier to give instructions on how to reproduce this one than it is to describe it. Do the following, and you will see the issue:\r\n\r\n1. In WYSIWYG mode, insert a link to some URL. Initially, everything appears to the eye to be okay (but it isn't—see below on previewing, etc.).\r\n![screen shot 2017-01-15 at 4 33 17 am](https://cloud.githubusercontent.com/assets/191731/21962155/d11dcd22-dadb-11e6-9d8d-9728533ecb12.png)\r\n2. Toggle from WYSIWYG mode to source mode. Instead of converting the `<a>` element to a `[url]` BBCode, it is converted to a `[member]` BBCode with an undefined parameter.\r\n![screen shot 2017-01-15 at 4 35 57 am](https://cloud.githubusercontent.com/assets/191731/21962162/255c49e0-dadc-11e6-80b7-36dd0180bbd0.png)\r\n3. Toggle back to WYSIWYG. SCEditor tries to render this as a mention.\r\n![screen shot 2017-01-15 at 4 37 42 am](https://cloud.githubusercontent.com/assets/191731/21962169/63311732-dadc-11e6-93e7-421142dfb293.png)\r\n4. Toggle to source mode again. Now the `<a>` get converted to an `[attach]` BBCode!\r\n![screen shot 2017-01-15 at 4 39 09 am](https://cloud.githubusercontent.com/assets/191731/21962176/971d9b7e-dadc-11e6-8ced-9dececaf8a0e.png)\r\n\r\nThis issue does not only affect toggling between editor modes. It also affects the actual data passed to SMF's preparser (and therefore also the data that will be saved in the database). To see this, just get a post preview at any point in the process outlined above. Try to get a preview after completing step 1 above, and you will see this:\r\n![screen shot 2017-01-15 at 4 47 23 am](https://cloud.githubusercontent.com/assets/191731/21962222/bbdee52a-dadd-11e6-8bce-e38fc4941c90.png)\r\nTry after completing step 3, and you will see this:\r\n![screen shot 2017-01-15 at 4 49 08 am](https://cloud.githubusercontent.com/assets/191731/21962231/fa1297c4-dadd-11e6-81e9-3a145df9c45d.png)"}}
{"actor":{"display_login":"Oldiesmann"}}