Login

russian armor

bbtag parser errors

15 Feb 2013, 14:31 PM
#1
avatar of cr4wler

Posts: 1164

usual usage of the img tag:
Code
[img]<URL>[/img]


but

Code
[img=<URL>]


works too.

now, if you try using the second version within a spoiler tag, something weird happens:

Code
[spoiler][img=<URL>][/spoiler]


results in a working spoiler tag, that contains the image, but also the closing of the spoiler tag (and the rest of the post too):

13 Mar 2013, 07:11 AM
#2
avatar of AmiPolizeiFunk
Admin Black Badge
Patrion 15

Posts: 16697 | Subs: 12

Hmm I had no idea that

Code
[img=<URL>]


works. I've never used it and I don't know if we intended it to work or not. But good find. And the more details you can provide about other "weirdness", the better. :thumb:
13 Mar 2013, 08:27 AM
#3
avatar of cr4wler

Posts: 1164

all the other "weirdness" has the same root problem: the state machine beingin the state it should be in... i can't remember whether another bbtag other than the img one had problems... but basically the parser should ignore unclosed bbtags (unless they are intended not to be closed) and treat it as regular text.

similarly (i maybe should have opened another thread for that) the parser for the shoutbox is erroneous for URLs (a regular left/open parenthesis '(' will "break" links up... but parentheses are allowed in URLs, so URLs containing parentheses do not work in the shoutbox) and might have problems escaping some chars (as in the escape chars are being printed along with the escaped chars for some reason, didn't quite figure that one out yet)
1 user is browsing this thread: 1 guest

Ladders Top 10

  • #
    Steam Alias
    W
    L
    %
    Streak
Data provided by Relic Relic Entertainment

Replay highlight

VS
  • U.S. Forces flag cblanco ★
  • The British Forces flag 보드카 중대
  • Oberkommando West flag VonManteuffel
  • Ostheer flag Heartless Jäger
uploaded by XXxxHeartlessxxXX

Board Info

561 users are online: 3 members and 558 guests
Osinyagov, Crecer13, aerafield
3 posts in the last 24h
39 posts in the last week
131 posts in the last month
Registered members: 45084
Welcome our newest member, assistgroup
Most online: 2043 users on 29 Oct 2023, 01:04 AM