Skip to content

CLI Script: STATUS_SELECTED rows contain double slashes in URL #99

@djarran

Description

@djarran

Description: During the conversion script, we have the following code:

    $dataitem = $data[$record->id];
    if (!$todb->iscollection) {
        if ($todb->viewstatus == assign_submission_maharaws::STATUS_SELECTED) {
            $urlstring = '/user/' . $dataitem['owner'] .'/'. $dataitem['urlid'];
            $todb->viewurl = $dataitem['endpointurl'] . $urlstring;

$dataitem['endpointurl'] contains the URL ending with a /. The $urlstring begins with a / too. This causes issues when they are concatenated

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions