Announcement

Collapse
No announcement yet.

New generator bug

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • New generator bug

    The following code is generated:
    Code:
    3616|  $pwd = $password;
    3617|
    3618|   if (preg_match('#.*^(?=.{8,20
    3619| $_SESSION['scriptcase']['s_app_form_add_users']['contr_erro'] = 'off';
    3620| }
    3621| function dbgettemplate($shopid, $templateid, $parms)
    the preg_match is from a library routine:

    Code:
     <?php
     1|
     2| function testPassword($password)
     3| {
     4|  $pwd = $password;
     5|
     6|   if (preg_match('#.*^(?=.{8,20})(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*\W).*$#', $pwd)){
     7|    return 1;
     8|   } else {
     9|    return -1;
    10|   }
    11| }
    12| ?>
    This used to work well and must be introduced in one of the latest updates (line 3618). A serious error imho. Same issue if you change ' to "
    Last edited by aducom; 06-02-2015, 01:36 PM.
    Albert Drent
    aducom software netherlands
    scriptcase partner, reseller, support and (turn-key) development
    www.scriptcase.eu / www.scriptcase.nl

  • #2
    Hello,

    I did some tests, and it's a bad functionality from scriptcase.
    But, it has been already reported to the bugs department to correction.

    When the correction is ready. I'll inform you.
    --
    ScriptCase Team

    Comment

    Working...
    X