Index: trunk/wiki2xml/php/wiki2xml.php |
— | — | @@ -143,6 +143,10 @@ |
144 | 144 | $closeit1 = $closeit[0] ; |
145 | 145 | while ( 1 ) |
146 | 146 | { |
| 147 | + if ( $b >= $this->wl ) { |
| 148 | + $this->bold_italics = $bi ; |
| 149 | + return false ; |
| 150 | + } |
147 | 151 | $c = $this->w[$b] ; |
148 | 152 | if ( $closeit != "}}" && $c == "\n" ) { |
149 | 153 | $this->bold_italics = $bi ; |
— | — | @@ -166,11 +170,11 @@ |
167 | 171 | } |
168 | 172 | $x .= htmlspecialchars ( $c ) ; |
169 | 173 | $b++ ; |
170 | | - if ( $b >= $this->wl ) { |
| 174 | +/* if ( $b >= $this->wl ) { |
171 | 175 | $this->bold_italics = $bi ; |
172 | 176 | return false ; |
173 | | - } |
174 | | - } |
| 177 | + }*/ |
| 178 | + } |
175 | 179 | |
176 | 180 | if ( $closeit == "}}" && !$istarget ) { |
177 | 181 | $xml .= substr ( $this->w , $a , $b - $a ) ; |