Index: branches/wmf/1.18wmf1/extensions/CodeReview/backend/CodeRevision.php |
— | — | @@ -441,6 +441,9 @@ |
442 | 442 | // Get repo and build comment title (for url) |
443 | 443 | $url = $this->getCanonicalUrl(); |
444 | 444 | |
| 445 | + // Live hack: always make the URL use https: |
| 446 | + $url = str_replace( 'http:', 'https:', $url ); |
| 447 | + |
445 | 448 | foreach ( $res as $row ) { |
446 | 449 | $revision = CodeRevision::newFromRow( $this->repo, $row ); |
447 | 450 | $users = $revision->getCommentingUsers(); |
— | — | @@ -628,6 +631,9 @@ |
629 | 632 | |
630 | 633 | $url = $this->getCanonicalUrl( $commentId ); |
631 | 634 | |
| 635 | + // Live hack: always make the URL use https: |
| 636 | + $url = str_replace( 'http:', 'https:', $url ); |
| 637 | + |
632 | 638 | $this->sendCommentToUDP( $commentId, $text, $url ); |
633 | 639 | |
634 | 640 | return $commentId; |
— | — | @@ -1267,6 +1273,9 @@ |
1268 | 1274 | if( $wgCodeReviewUDPAddress ) { |
1269 | 1275 | if( is_null( $url ) ) { |
1270 | 1276 | $url = $this->getCanonicalUrl( $commentId ); |
| 1277 | + |
| 1278 | + // Live hack: always make the URL use https: |
| 1279 | + $url = str_replace( 'http:', 'https:', $url ); |
1271 | 1280 | } |
1272 | 1281 | |
1273 | 1282 | $line = wfMsg( 'code-rev-message' ) . " \00314(" . $this->repo->getName() . |
— | — | @@ -1287,6 +1296,9 @@ |
1288 | 1297 | if( $wgCodeReviewUDPAddress ) { |
1289 | 1298 | $url = $this->getCanonicalUrl(); |
1290 | 1299 | |
| 1300 | + // Live hack: always make the URL use https: |
| 1301 | + $url = str_replace( 'http:', 'https:', $url ); |
| 1302 | + |
1291 | 1303 | $line = wfMsg( 'code-rev-status' ) . " \00314(" . $this->repo->getName() . |
1292 | 1304 | ")\00303 " . RecentChange::cleanupForIRC( $wgUser->getName() ) . "\003 " . |
1293 | 1305 | /* Remove three apostrophes as they are intended for the parser */ |