Ignore:
Timestamp:
Feb 24, 2022 10:05:48 PM (2 years ago)
Author:
anonymous
Message:

Include boomerang in hidden input on login form so the user will be redirected if the revisit the login form after session is garbage collected. Add escape values used in html attributes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Utilities.inc.php

    r759 r763  
    319319            // Remove http schemas, and any single trailing / to make the display URL.
    320320            $display_url = preg_replace(['!^https?://!u', '!^([^/]+)/$!u'], ['', '$1'], $url);
    321             return sprintf('<a href="%s">%s</a>', oTxt($absolute_url), $display_url);
     321            return sprintf('<a href="%s">%s</a>', oTxt($absolute_url), oTxt($display_url));
    322322        } else {
    323323            // Truncated URL.
    324324            // Remove http schemas, and any single trailing / to make the display URL.
    325325            $display_url = preg_replace(['!^https?://!u', '!^([^/]+)/$!u'], ['', '$1'], trim($truncated_url));
    326             return sprintf('<a href="%s">%s%s</a>', oTxt($absolute_url), $display_url, $delim);
     326            return sprintf('<a href="%s">%s%s</a>', oTxt($absolute_url), oTxt($display_url), $delim);
    327327        }
    328328    }, $text);
     
    349349        if ('' != trim($w)) {
    350350            $search[] = '/\b(' . preg_quote($w) . ')\b/i' . $app->getParam('preg_u');
    351             $replace[] = '<span class="' . $class . '">$1</span>';
     351            $replace[] = '<span class="' . oTxt($class) . '">$1</span>';
    352352        }
    353353    }
Note: See TracChangeset for help on using the changeset viewer.