Index: trunk/extensions/LiquidThreads/classes/View.php |
— | — | @@ -224,7 +224,7 @@ |
225 | 225 | |
226 | 226 | // Add fragment if appropriate. |
227 | 227 | if ( $operand && $includeFragment ) { |
228 | | - $title->mFragment = 'lqt_thread_' . $operand->id(); |
| 228 | + $title->mFragment = $operand->getAnchorName(); |
229 | 229 | } |
230 | 230 | |
231 | 231 | return array( $title, $query ); |
Index: trunk/extensions/LiquidThreads/classes/Thread.php |
— | — | @@ -1193,7 +1193,8 @@ |
1194 | 1194 | } |
1195 | 1195 | |
1196 | 1196 | function getAnchorName() { |
1197 | | - return "lqt_thread_{$this->id()}"; |
| 1197 | + $wantedId = $this->subject()."_{$this->id()}"; |
| 1198 | + return Sanitizer::escapeId( $wantedId ); |
1198 | 1199 | } |
1199 | 1200 | |
1200 | 1201 | function updateHistory() { |