Check for valid topic URL when publishing master github/master
authorChristian Weiske <cweiske@cweiske.de>
Tue, 9 Sep 2025 13:34:21 +0000 (15:34 +0200)
committerChristian Weiske <cweiske@cweiske.de>
Tue, 9 Sep 2025 13:34:21 +0000 (15:34 +0200)
src/phubb/Task/Publish.php

index 0fb5dcc36d9e9317b7c20bdee56995e9106cff46..7d55d9a51fbff90f1ed092688b39733db931ada8 100644 (file)
@@ -72,6 +72,10 @@ class Task_Publish extends Task_Base
      */
     protected function publishSingleUrl($url)
     {
      */
     protected function publishSingleUrl($url)
     {
+        if (!isValidTopic($url)) {
+            return false;
+        }
+
         $this->nRequestId = $this->storeRequest($url);
 
         list($rowTopic, $headers, $content) = $this->checkTopicUpdate($url);
         $this->nRequestId = $this->storeRequest($url);
 
         list($rowTopic, $headers, $content) = $this->checkTopicUpdate($url);