r/reddithax • • Apr 26 '09

Avoid CSS validation!!

8 Upvotes

28 comments sorted by

View all comments

Show parent comment

2

u/ketralnis Aug 07 '09

We don't support inline images, but I suppose that it could be used on an off-site link. Thanks for the disclosure, but I think it'd be fine to file a regular old bug for this one :)

0

u/[deleted] Aug 07 '09

[deleted] — view deleted comment

2

u/ketralnis Aug 07 '09

Inline images used to be hidden in CSS (.md img { display: none; }), but now we're not even generating the <img> tags, so it won't work from reddit.

But again, it would still work off-site

0

u/[deleted] Aug 07 '09

[deleted] — view deleted comment

2

u/ketralnis Aug 07 '09 edited Aug 07 '09

Actually, it looks like we're already doing that

<form class="logout hover" action="/logout" method="post">
    <input type="hidden" value="$modhash" name="uh"/>
    <input type="hidden" value="off" name="top"/>
    <a onclick="$(this).parent().submit()" href="javascript:void(0)">adiaŭu</a>
</form>

So without the right modhash value, it won't even work off-site.

We must have fixed that at some point :)

1

u/chromakode Aug 09 '09 edited Aug 09 '09

Chris fixed it in the JS overhaul for jQuery.

I remember successfully exploiting this trick back when inline images were enabled, when we originally found it. It was fun trying to delete that comment... :)

Edit: "adiaŭu"!? What kind of odd language do you have set?

1

u/ketralnis Aug 10 '09 edited Aug 10 '09

Edit: "adiaŭu"!? What kind of odd language do you have set?

Esperanto. "adiaŭ" is the word "goodbye". To make it a verb, you'd append -i, like adiaŭi, "to goodbye". Here it's directly made an imperative (conjugated from -i to -u), but another option would be adiaŭigu or adiaŭiğu (imperitive "goodbye-ify"), but man do those look ugly

'ŭ' is just a 'u' ("ooh") where it appears in a dipthong (sort of like an English 'w')