Subscribe2 HTML issues -> hack
-
Recently took over a number of blogs which have been running Subscribe2 HTML for years. There was a pending update which I installed. Needless to say, everything broke. I tried fixing by uninstalling and starting from scratch….no joy. I finally dove into the code and found php which was coded wrong….and could not possibly work. I went ahead and hacked/fixed what I needed, but I don’t understand how we’re the only ones with this issue. I emailed the developer @ Semperplugins.com and no response.
Here is one example of what I’m referring to. Please correct me if I’m missing something, but ‘1’ is a string. The operand === compares value and type. If you compare the result of intval() and a string it’s always going to prove false.
Hope to hear from someone on this.
bkcfile: class-s2-frontend.php
line: 245$action = intval( substr( $code, 0, 1 ) );
if ( ‘1’ === $action ) {
return __( ‘Subscription Confirmation’, ‘subscribe2’ );
} else {
return __( ‘Unsubscription Confirmation’, ‘subscribe2’ );
}
- The topic ‘Subscribe2 HTML issues -> hack’ is closed to new replies.