|
@@ -148,13 +148,13 @@ |
|
|
block discarded – undo |
|
148
|
148
|
} |
|
149
|
149
|
|
|
150
|
150
|
/** |
|
151
|
|
- * Inserts a link detector to the given HTML source. All outgoing |
|
152
|
|
- * HTTP links in the source HTML are replaced with the given |
|
153
|
|
- * link detector address so that the token "URL" is replaced with |
|
154
|
|
- * encoded form of the original link. It is expected that the link detector |
|
155
|
|
- * address points to a script that records the passed link and |
|
156
|
|
- * forwards the client to the real link target. |
|
157
|
|
- */ |
|
|
151
|
+ * Inserts a link detector to the given HTML source. All outgoing |
|
|
152
|
+ * HTTP links in the source HTML are replaced with the given |
|
|
153
|
+ * link detector address so that the token "URL" is replaced with |
|
|
154
|
+ * encoded form of the original link. It is expected that the link detector |
|
|
155
|
+ * address points to a script that records the passed link and |
|
|
156
|
+ * forwards the client to the real link target. |
|
|
157
|
+ */ |
|
158
|
158
|
private function _insert_link_detector(string $html, string $address) : string |
|
159
|
159
|
{ |
|
160
|
160
|
$address = addslashes($address); |
Please login to merge, or discard this patch.