Commit a39c5283 authored by zhz's avatar zhz

goods

parent d9d7ae7a
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
<?php <?php
$str = $commonInfo['goods_youku_url']; $str = $commonInfo['goods_youku_url'];
if($str) { if($str) {
preg_match('/<iframe((?!src).)*src[\s]*=[\s]*[\'"](?<src>[^\'"]*)[\'"]/i',$str,$match); preg_match('/iframe((?!src).)*src[\s]*=[\s]*[\'"](?<src>[^\'"]*)[\'"]/i',$str,$match);
if($match) { if($match) {
echo "<iframe height=auto width=100% src='{$match['src']}' frameborder=0 'allowfullscreen'></iframe>"; echo "<iframe height=auto width=100% src='{$match['src']}' frameborder=0 'allowfullscreen'></iframe>";
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment