Support » Plugin: CryptX » two bugs: please fix

  • Resolved Leitner

    (@leitner)


    Hi Ralf,

    I found two bugs:

    First:
    If you have whitespaces between <a> and </a> CryptX doesn’t work.
    The Regex at line 226 in functions.php should be /<a (.*?)(href=("|\')mailto:(.*?)("|\')(.*?)|)>\s*(.*?)\s*<\/a>/i

    Second:
    If you have declared a target in an anchor CryptX doesn’t work correctly.
    So you have to add at line 238 in functions.php:
    $return = preg_replace('/target=((\"(.*?)\")|(\'(.*?)\'))/i', '', $return);

    Regards
    Patrick

Viewing 1 replies (of 1 total)
  • Plugin Author Ralf Weber

    (@d3395)

    Hi,

    sorry for the very long delay 🙁

    In the new version 3.12.14 I put your bug fixes into the code.

    Thanks a lot for your help 🙂

    Kind regards

Viewing 1 replies (of 1 total)
  • The topic ‘two bugs: please fix’ is closed to new replies.