Mantis - Quercus
Viewing Issue Advanced Details
1738 major always 05-16-07 13:43 05-17-07 10:22
mkn  
nam  
normal  
closed 3.1.1  
fixed  
none    
none 3.1.2  
0001738: Unclosed character class error in PhpMyAdmin
At the opening page and whenever you try to browse data this happens:

om.caucho.quercus.QuercusExecutionException: java.util.regex.PatternSyntaxException
Unclosed character class near index 18
(^|(\\\\)+|[^\])%|_
                  ^
    at java.util.regex.Pattern.error(Pattern.java:1650)
    at java.util.regex.Pattern.clazz(Pattern.java:2199)
    at java.util.regex.Pattern.sequence(Pattern.java:1727)
    at java.util.regex.Pattern.expr(Pattern.java:1687)
    at java.util.regex.Pattern.group0(Pattern.java:2457)
    at java.util.regex.Pattern.sequence(Pattern.java:1715)
    at java.util.regex.Pattern.expr(Pattern.java:1687)
    at java.util.regex.Pattern.compile(Pattern.java:1397)
    at java.util.regex.Pattern.<init>(Pattern.java:1124)
    at java.util.regex.Pattern.compile(Pattern.java:840)
    at com.caucho.quercus.lib.RegexpModule.ereg(RegexpModule.java:128)
    at com.caucho.quercus.lib.RegexpModule.ereg(RegexpModule.java:99)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at com.caucho.quercus.module.StaticFunction.invoke(StaticFunction.java:105)
    at com.caucho.quercus.env.JavaInvoker.call(JavaInvoker.java:614)
    at com.caucho.quercus.env.JavaInvoker.call(JavaInvoker.java:487)
    at com.caucho.quercus.env.JavaInvoker.call(JavaInvoker.java:473)
    at com.caucho.quercus.expr.FunctionExpr.evalImpl(FunctionExpr.java:180)
    at com.caucho.quercus.expr.FunctionExpr.eval(FunctionExpr.java:125)
    at com.caucho.quercus.expr.Expr.evalBoolean(Expr.java:445)
    at com.caucho.quercus.expr.AndExpr.evalBoolean(AndExpr.java:83)
    at com.caucho.quercus.expr.OrExpr.evalBoolean(OrExpr.java:83)
    at com.caucho.quercus.program.IfStatement.execute(IfStatement.java:74)
    at com.caucho.quercus.program.BlockStatement.execute(BlockStatement.java:99)
    at com.caucho.quercus.program.IfStatement.execute(IfStatement.java:78)
    at com.caucho.quercus.program.IfStatement.execute(IfStatement.java:75)
    at com.caucho.quercus.program.BlockStatement.execute(BlockStatement.java:99)
    at com.caucho.quercus.program.WhileStatement.execute(WhileStatement.java:60)
    at .PMA_analyseShowGrant(/D:/software/resin-3.1.1/webapps/resin-doc/examples/quercus-hello/pma/libraries/check_user_privileges.lib.php:24)

The offending line is presumably
   $re0 = '(^|(\\\\\\\\)+|[^\])'; // non-escaped wildcards

Notes
(0001933)
mkn   
05-16-07 13:44   
Forgot to mention the PhpMyAdmin version 2.10.1
(0001934)
nam   
05-17-07 10:22   
php/152x