HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

users cant post new discussions with css examples..

users cant post new discussions with css examples..

I cant post this as a discussion in my forum

<link rel="stylesheet" type="text/css" href="mystyle.css" >


  • LincLinc Detroit Admin

    Are they getting an error? Is it just becoming invisible? This needs more info.

  • @Linc when trying to posting the discussion or when draft saving this popup appear.

    Stack trace:
    #0 /library/Vanilla/Formatting/FormatService.php(108): Vanilla\Formatting\Formats\RichFormat->parseAttachments('[{"attributes":...')
    #1 /library/Vanilla/Formatting/UpdateMediaTrait.php(115): Vanilla\Formatting\FormatService->parseAttachments('[{"attributes":...', 'Rich')
    #2 /applications/vanilla/models/class.discussionmodel.php(252): DiscussionModel->refreshMediaAttachments(66, '[{"attributes":...', 'Rich')
    #3 /applications/vanilla/models/class.discussionmodel.php(2217): DiscussionModel->calculateMediaAttachments(66, true)
    #4 /applications/vanilla/controllers/class.postcontroller.php(323): DiscussionModel->save(Array)
    #5 /applications/vanilla/controllers/class.postcontroller.php(459): PostController->discussion('2')
    #6 /library/core/class.dispatcher.php(872): PostController->editDiscussion('66', '')
    #7 /library/core/class.dispatcher.php(289): Gdn_Dispatcher->dispatchController(Object(Gdn_Request), Array)
    #8 /index.php(29): Gdn_Dispatcher->dispatch()
    #9 {main} in /home/offrwtdz/kuppiya.lk/library/Vanilla/Formatting/Formats/RichFormat.php on line 229

    this is the error log

  • LincLinc Detroit Admin

    No idea, sorry.

  • KasparKaspar Moderator

    Do you have something like AllowRawFormat

    And post it without formatting as a codeblock - so forum sees it as active code and tries to render/run.

  • edited April 2020

    AllowRawFormat is a plugin?

    @Kaspar I try to use it using codeblock

    but the result is same

  • LincLinc Detroit Admin

    Do not use AllowRawFormat. That should be deleted. It's an egregious security problem.

Sign In or Register to comment.