Bug 12885: Fix if url contains +*... and HTML5 Media is enabled
The special regex chars are not escaped in C4::HTML5Media.
Test plan:
1/ Set 856$u=http://www.mrqe.com/lookup?talented+mr.+ripley
2/ Enable the pref HTML5Media
3/ Go on the detail page
It should not explode.
Signed-off-by: Mirko Tietgen <mirko@abunchofthings.net>
Signed-off-by: Joonas Kylmälä <j.kylmala@gmail.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 085d766a05)
Signed-off-by: Liz Rea <wizzyrea@gmail.com>
This commit is contained in:
parent
9d2046b285
commit
2727146bde
|
|
@ -110,7 +110,7 @@ sub gethtml5media {
|
|||
}
|
||||
# extension
|
||||
$HTML5Media{extension} = ($HTML5Media{srcblock} =~ m/([^.]+)$/)[0];
|
||||
if ( !grep /$HTML5Media{extension}/, @HTML5MediaExtensions ) {
|
||||
if ( !grep /\Q$HTML5Media{extension}\E/, @HTML5MediaExtensions ) {
|
||||
next; # not a specified media file
|
||||
}
|
||||
# mime
|
||||
|
|
|
|||
Loading…
Reference in New Issue