• Resolved pavelinnuendo

    (@pavelinnuendo)


    Hi, I found a bug in search form section. There is generated <input type=”hidden” name”dir”…> twice. Once in the foreach (where any value can be substituted) and then it’s declared again straight, correctly with int validation.

    My supposed patch is:

    --- shortcode.php.orig  2022-01-25 20:21:45.294511850 +0100
    +++ shortcode.php       2022-01-25 20:20:46.398349119 +0100
    @@ -384,7 +384,7 @@
             echo "<form method='get' action='" . $jump_location . "'>";
             foreach($search_get_url as $key_name => $value)
             {
    -            if($key_name == 'name_directory_startswith' || is_array($key_name) || is_array($value))
    +            if(in_array($key_name, ['name_directory_startswith', 'dir']) || is_array($key_name) || is_array($value))
                 {
                     continue;
                 }
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Bugfix: duplicated input type=hidden name=dir in the search form’ is closed to new replies.