git.cweiske.de
/
phubb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
94629bb
)
Check for valid topic URL when publishing
master
github/master
author
Christian Weiske
<cweiske@cweiske.de>
Tue, 9 Sep 2025 13:34:21 +0000
(15:34 +0200)
committer
Christian Weiske
<cweiske@cweiske.de>
Tue, 9 Sep 2025 13:34:21 +0000
(15:34 +0200)
src/phubb/Task/Publish.php
patch
|
blob
|
history
diff --git
a/src/phubb/Task/Publish.php
b/src/phubb/Task/Publish.php
index 0fb5dcc36d9e9317b7c20bdee56995e9106cff46..7d55d9a51fbff90f1ed092688b39733db931ada8 100644
(file)
--- a/
src/phubb/Task/Publish.php
+++ b/
src/phubb/Task/Publish.php
@@
-72,6
+72,10
@@
class Task_Publish extends Task_Base
*/
protected function publishSingleUrl($url)
{
+ if (!isValidTopic($url)) {
+ return false;
+ }
+
$this->nRequestId = $this->storeRequest($url);
list($rowTopic, $headers, $content) = $this->checkTopicUpdate($url);