• Hello,

    We’re encountering an error in the documentcloud plugin after a change to the following code block in the most recent version.

    It previously checked that the value was a string:

    if (
    is_string( $value )
    && 0 === strpos( $value, '#' )
    ) {

    This block has been changed to:

    if ( 0 === strpos( $value, '#' ) ) {
    $value = rawurlencode( $value );
    }

    We occasionally see the following error:

    Uncaught exception 'TypeError' with message 'strpos(): Argument #1 ($haystack) must be of type string, array given' in /var/www/wp-content/plugins/documentcloud/documentcloud.php:286

    Would you consider restoring the type check (e.g., is_string( $value )) before calling strpos() in a future release to prevent this error?

    Thanks for your work on the plugin.

You must be logged in to reply to this topic.