Forráskód Böngészése

Update FromCommentsController.class.php

This pattern `$p = '/\/\*\*([\s\S])*?\*\//' ;` sometimes fails with error code: PREG_JIT_STACKLIMIT_ERROR,  so change the pattern to `$p = "|/\*\*([\s\S]*)\*/|U";` to fix it.
Liming-Wang 7 éve
szülő
commit
59daece7d1

+ 1 - 1
server/Application/Api/Controller/FromCommentsController.class.php

@@ -20,7 +20,7 @@ class FromCommentsController extends BaseController {
             return false;
         }
 
-        $p = '/\/\*\*([\s\S])*?\*\//' ;
+        $p = "|/\*\*([\s\S]*)\*/|U";
         preg_match_all($p, $content , $matches) ;
         if ($matches && $matches[0]) {
             foreach ($matches[0] as $key => $value) {