aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2016-08-16 20:49:31 +0200
committerMarc Alexander <admin@m-a-styles.de>2016-08-16 20:49:31 +0200
commitc044a41d071bd694cd1517ff81a36c7c17243853 (patch)
tree8a1683d6d7c41895d1a04880d829131e4d74b47c /tests
parentbc823a18be06b07566e295ed5aff0ac407ead601 (diff)
parent260a0a29add1d318c27e998cfa3602333c74adcb (diff)
downloadforums-c044a41d071bd694cd1517ff81a36c7c17243853.tar
forums-c044a41d071bd694cd1517ff81a36c7c17243853.tar.gz
forums-c044a41d071bd694cd1517ff81a36c7c17243853.tar.bz2
forums-c044a41d071bd694cd1517ff81a36c7c17243853.tar.xz
forums-c044a41d071bd694cd1517ff81a36c7c17243853.zip
Merge pull request #4404 from JoshyPHP/ticket/14740
[ticket/14740] Added support for quoted attributes in BBCode definitions
Diffstat (limited to 'tests')
-rw-r--r--tests/text_processing/tickets_data/PHPBB3-14740.html2
-rw-r--r--tests/text_processing/tickets_data/PHPBB3-14740.txt2
-rw-r--r--tests/text_processing/tickets_data/PHPBB3-14740.xml40
3 files changed, 44 insertions, 0 deletions
diff --git a/tests/text_processing/tickets_data/PHPBB3-14740.html b/tests/text_processing/tickets_data/PHPBB3-14740.html
new file mode 100644
index 0000000000..a1986a0901
--- /dev/null
+++ b/tests/text_processing/tickets_data/PHPBB3-14740.html
@@ -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> \ No newline at end of file
diff --git a/tests/text_processing/tickets_data/PHPBB3-14740.txt b/tests/text_processing/tickets_data/PHPBB3-14740.txt
new file mode 100644
index 0000000000..c5b2e74513
--- /dev/null
+++ b/tests/text_processing/tickets_data/PHPBB3-14740.txt
@@ -0,0 +1,2 @@
+[mod=neufke]Mod Remark[/mod]
+[mod="neufke"]Mod Remark[/mod] \ No newline at end of file
diff --git a/tests/text_processing/tickets_data/PHPBB3-14740.xml b/tests/text_processing/tickets_data/PHPBB3-14740.xml
new file mode 100644
index 0000000000..9e7dc9760c
--- /dev/null
+++ b/tests/text_processing/tickets_data/PHPBB3-14740.xml
@@ -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>