mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-06 08:47:45 +02:00
[ticket/11647] Always use & for URLs
Remove code for URLs separated with ; Add test case for mix of & and & in URLs PHPBB3-11647
This commit is contained in:
@@ -30,16 +30,12 @@ class phpbb_template_template_includejs_test extends phpbb_template_template_tes
|
||||
),
|
||||
array(
|
||||
array('TEST' => 3),
|
||||
'<script type="text/javascript" src="' . $this->test_path . '/templates/parent_and_child.js?test=1&assets_version=0"></script>',
|
||||
'<script type="text/javascript" src="' . $this->test_path . '/templates/parent_and_child.js?test=1&assets_version=0"></script>',
|
||||
),
|
||||
array(
|
||||
array('TEST' => 4),
|
||||
'<script type="text/javascript" src="' . $this->test_path . '/templates/parent_and_child.js?test=1&assets_version=0"></script>',
|
||||
),
|
||||
array(
|
||||
array('TEST' => 5),
|
||||
'<script type="text/javascript" src="' . $this->test_path . '/templates/parent_and_child.js?test=1;assets_version=0"></script>',
|
||||
),
|
||||
array(
|
||||
array('TEST' => 6),
|
||||
'<script type="text/javascript" src="' . $this->test_path . '/parent_templates/parent_only.js?assets_version=1"></script>',
|
||||
@@ -68,10 +64,6 @@ class phpbb_template_template_includejs_test extends phpbb_template_template_tes
|
||||
array('TEST' => 12),
|
||||
'<script type="text/javascript" src="' . $this->test_path . '/parent_templates/parent_only.js?test1=1&test2=2&assets_version=1#test3"></script>',
|
||||
),
|
||||
array(
|
||||
array('TEST' => 13),
|
||||
'<script type="text/javascript" src="' . $this->test_path . '/parent_templates/parent_only.js?test1=1;test2=2;assets_version=1#test3"></script>',
|
||||
),
|
||||
array(
|
||||
array('TEST' => 14),
|
||||
'<script type="text/javascript" src="' . $this->test_path . '/parent_templates/parent_only.js?test1="&assets_version=1#test3"></script>',
|
||||
@@ -88,6 +80,10 @@ class phpbb_template_template_includejs_test extends phpbb_template_template_tes
|
||||
array('TEST' => 17),
|
||||
'<script type="text/javascript" src="//phpbb.com/b.js"></script>',
|
||||
),
|
||||
array(
|
||||
array('TEST' => 18),
|
||||
'<script type="text/javascript" src="' . $this->test_path . '/templates/parent_and_child.js?test=1&test2=0&assets_version=1"></script>',
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
|
@@ -6,8 +6,6 @@
|
||||
<!-- INCLUDEJS parent_and_child.js?test=1&assets_version=0 -->
|
||||
<!-- ELSEIF TEST === 4 -->
|
||||
<!-- INCLUDEJS parent_and_child.js?test=1&assets_version=0 -->
|
||||
<!-- ELSEIF TEST === 5 -->
|
||||
<!-- INCLUDEJS parent_and_child.js?test=1;assets_version=0 -->
|
||||
<!-- ELSEIF TEST === 6 -->
|
||||
<!-- INCLUDEJS {PARENT} -->
|
||||
<!-- ELSEIF TEST === 7 -->
|
||||
@@ -24,8 +22,6 @@
|
||||
<!-- INCLUDEJS {$TEST} -->
|
||||
<!-- ELSEIF TEST === 12 -->
|
||||
<!-- INCLUDEJS parent_only.js?test1=1&test2=2#test3 -->
|
||||
<!-- ELSEIF TEST === 13 -->
|
||||
<!-- INCLUDEJS parent_only.js?test1=1;test2=2#test3 -->
|
||||
<!-- ELSEIF TEST === 14 -->
|
||||
<!-- INCLUDEJS parent_only.js?test1="#test3 -->
|
||||
<!-- ELSEIF TEST === 15 -->
|
||||
@@ -34,5 +30,7 @@
|
||||
<!-- INCLUDEJS http://phpbb.com/b.js?c=d&assets_version=2#f -->
|
||||
<!-- ELSEIF TEST === 17 -->
|
||||
<!-- INCLUDEJS //phpbb.com/b.js -->
|
||||
<!-- ELSEIF TEST === 18 -->
|
||||
<!-- INCLUDEJS parent_and_child.js?test=1&test2=0 -->
|
||||
<!-- ENDIF -->
|
||||
{$SCRIPTS}
|
||||
|
Reference in New Issue
Block a user