1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-01-18 22:58:10 +01:00

Merge pull request #4404 from JoshyPHP/ticket/14740

[ticket/14740] Added support for quoted attributes in BBCode definitions
This commit is contained in:
Marc Alexander 2016-08-16 20:49:31 +02:00
commit c044a41d07
4 changed files with 49 additions and 5 deletions

10
phpBB/composer.lock generated
View File

@ -641,16 +641,16 @@
},
{
"name": "s9e/text-formatter",
"version": "0.6.1",
"version": "0.6.2",
"source": {
"type": "git",
"url": "https://github.com/s9e/TextFormatter.git",
"reference": "dd0ec47d1ffb5ed5a3eb4e3adbc33db6e0057420"
"reference": "99d6b5799387dddfdd00b5a76bb83a15dda586e3"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/s9e/TextFormatter/zipball/dd0ec47d1ffb5ed5a3eb4e3adbc33db6e0057420",
"reference": "dd0ec47d1ffb5ed5a3eb4e3adbc33db6e0057420",
"url": "https://api.github.com/repos/s9e/TextFormatter/zipball/99d6b5799387dddfdd00b5a76bb83a15dda586e3",
"reference": "99d6b5799387dddfdd00b5a76bb83a15dda586e3",
"shasum": ""
},
"require": {
@ -697,7 +697,7 @@
"parser",
"shortcodes"
],
"time": "2016-07-30 01:50:02"
"time": "2016-08-09 14:16:45"
},
{
"name": "symfony/config",

View File

@ -0,0 +1,2 @@
<div id="modremark"><div id="modremarkexclamation">!</div><div><div id="moderemarktitle">Moderatoropmerking from: neufke</div><div id="moderemarktext">Mod Remark</div></div></div>
<div id="modremark"><div id="modremarkexclamation">!</div><div><div id="moderemarktitle">Moderatoropmerking from: neufke</div><div id="moderemarktext">Mod Remark</div></div></div>

View File

@ -0,0 +1,2 @@
[mod=neufke]Mod Remark[/mod]
[mod="neufke"]Mod Remark[/mod]

View File

@ -0,0 +1,40 @@
<?xml version="1.0" encoding="UTF-8" ?>
<dataset>
<table name="phpbb_bbcodes">
<column>bbcode_id</column>
<column>bbcode_tag</column>
<column>bbcode_helpline</column>
<column>display_on_posting</column>
<column>bbcode_match</column>
<column>bbcode_tpl</column>
<column>first_pass_match</column>
<column>first_pass_replace</column>
<column>second_pass_match</column>
<column>second_pass_replace</column>
<row>
<value>13</value>
<value>mod=</value>
<value></value>
<value>1</value>
<value>[mod=&quot;{TEXT1}&quot;]{TEXT2}[/mod]</value>
<value><![CDATA[<div id="modremark">
<div id="modremarkexclamation">!</div>
<div>
<div id="moderemarktitle">Moderatoropmerking {L_FROM}{L_COLON} {TEXT1}</div>
<div id="moderemarktext">{TEXT2}</div>
</div>
</div>]]></value>
<value>!\[mod\=&quot;(.*?)&quot;\](.*?)\[/mod\]!ies</value>
<value>'[mod=&quot;'.str_replace(array("\r\n", '\"', '\'', '(', ')'), array("\n", '"', '&#39;', '&#40;', '&#41;'), trim('${1}')).'&quot;:$uid]'.str_replace(array("\r\n", '\"', '\'', '(', ')'), array("\n", '"', '&#39;', '&#40;', '&#41;'), trim('${2}')).'[/mod:$uid]'</value>
<value>!\[mod\=&quot;(.*?)&quot;:$uid\](.*?)\[/mod:$uid\]!s</value>
<value><![CDATA[<div id="modremark">
<div id="modremarkexclamation">!</div>
<div>
<div id="moderemarktitle">Moderatoropmerking {L_FROM}{L_COLON} ${1}</div>
<div id="moderemarktext">${2}</div>
</div>
</div>]]></value>
</row>
</table>
</dataset>