]> Git repositories of Nishi - koakuma.git/commitdiff
fix typo
authorNishi <nishi@nishi.boats>
Wed, 2 Oct 2024 07:35:40 +0000 (07:35 +0000)
committerNishi <nishi@nishi.boats>
Wed, 2 Oct 2024 07:35:40 +0000 (07:35 +0000)
git-svn-id: file:///raid/svn-personal/koakuma/trunk@18 219d0f9c-2d94-d447-890a-813e76b88fe9

koakuma.cgi.in

index f9422848efd4f9bdd7762516d0c28d700e8c64ad..06fbb67f03fa40a3fc5483eab13e80b620800c16 100644 (file)
@@ -386,7 +386,7 @@ if { [catch {
                                        keyError {valueString "Bad JSON"}
                                }
                        } else {
-                               set projname "[$clidoc selectNodes "string(/name)"]"
+                               set projname "[regsub -all { } "[$clidoc selectNodes "string(/name)"]" "-"]"
                                set builddesc "[$clidoc selectNodes "string(/description)"]"
                                if { "$projname" == "" || "$builddesc" == "" } {
                                        rputs "Status: 400 Bad Request"
@@ -521,7 +521,7 @@ if { [catch {
                                        keyError {valueString "Bad JSON"}
                                }
                        } else {
-                               set projname "[$clidoc selectNodes "string(/name)"]"
+                               set projname "[regsub -all { } "[$clidoc selectNodes "string(/name)"]" "-"]"
                                set projdescription "[$clidoc selectNodes "string(/description)"]"
                                set projvcs "[$clidoc selectNodes "string(/vcs)"]"
                                set url "[$clidoc selectNodes "string(/url)"]"
@@ -614,7 +614,7 @@ if { [catch {
                                tputs   "               </th>"
                                tputs   "               <td>"
                                if { [file exists "@@PREFIX@@/lib/koakuma/db/data/$projname/build.lock"] } {
-                                       set fid [open "@@PREFIX@@/lib/koakuma/db/data/$projname/build.loc" "r"]
+                                       set fid [open "@@PREFIX@@/lib/koakuma/db/data/$projname/build.lock" "r"]
                                        if { [file exists "/proc/[gets $fid]"] } {
                                                tputs "Running"
                                        } else {