From 74b69161c36c35d1bccb8f0ce512c626775da7bf Mon Sep 17 00:00:00 2001 From: daitingting Date: Tue, 24 Jun 2025 14:18:07 +0800 Subject: [PATCH] * [task#145694,done,0.5h] Trim scope name. --- module/doc/control.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/module/doc/control.php b/module/doc/control.php index 5ee738a397..9ee3ffa803 100755 --- a/module/doc/control.php +++ b/module/doc/control.php @@ -2575,6 +2575,8 @@ class doc extends control $oldScopes = $newScopes = array(); foreach($scopes as $id => $name) { + if(empty(trim($name))) continue; + if(strpos((string)$id, 'id') !== false) { $scopeID = str_replace('id', '', $id);