Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 19,501 through 19,525 (of 32,585 total)
  • Author
    Search Results
  • #103608
    _ck_
    Participant

    Maybe I am getting rusty, but looking at the diff, I don’t see it.

    Basically it’s the same thing, shuffled around a bit and the same esc_url and esc_attr is being used at the end, which is the same pattern as the existing 1.0/1.1 code.

    Are you sure the fix was not being caused by just having a more updated version of esc_url and esc_attr ?

    Or was it just being solved by moving those two sanitizers up higher before bb_safe_redirect could ever be called. Because that was definitely an oversight on someone’s part (not me). Based on the comments I’d guess they thought their functionality was for display filtering and not actually sanitization.

    Looking at esc_url though, its default is indeed meant for displaying urls by default, note the comment in the code “Replace ampersands and single quotes only when displaying.” and how the context is set by default to “display”.

    Maybe test your solution with a url that contains an ampersand, it probably will not work?

    Also, are you relying on the list of protocols to do the sanitization? Because that could be defeated too (and would prevent using relative urls that are legitimate).

    ps. very minor but you have confusing indentation indicating nesting with the code at line 18 – which actually is not nested

    Feel free to email me directly if that’s better.

    #98508
    _ck_
    Participant

    Maybe I am getting rusty, but looking at the diff, I don’t see it.

    Basically it’s the same thing, shuffled around a bit and the same esc_url and esc_attr is being used at the end, which is the same pattern as the existing 1.0/1.1 code.

    Are you sure the fix was not being caused by just having a more updated version of esc_url and esc_attr ?

    Or was it just being solved by moving those two sanitizers up higher before bb_safe_redirect could ever be called. Because that was definitely an oversight on someone’s part (not me). Based on the comments I’d guess they thought their functionality was for display filtering and not actually sanitization.

    Looking at esc_url though, its default is indeed meant for displaying urls by default, note the comment in the code “Replace ampersands and single quotes only when displaying.” and how the context is set by default to “display”.

    Maybe test your solution with a url that contains an ampersand, it probably will not work?

    Also, are you relying on the list of protocols to do the sanitization? Because that could be defeated too (and would prevent using relative urls that are legitimate).

    ps. very minor but you have confusing indentation indicating nesting with the code at line 18 – which actually is not nested

    Feel free to email me directly if that’s better.

    #103606

    Happy holidays to you too. :)

    I am confident this potential exploit is now fixed, so if anyone wants to put some eyes on the bb-login.php from trunk would be helpful.

    #98506

    Happy holidays to you too. :)

    I am confident this potential exploit is now fixed, so if anyone wants to put some eyes on the bb-login.php from trunk would be helpful.

    #103515
    SEO Shruti
    Member

    Sorry. But there is no such option available.


    edit: Please don’t link offsite unless it’s bbPress related – jjj

    #98415
    SEO Shruti
    Member

    Sorry. But there is no such option available.


    edit: Please don’t link offsite unless it’s bbPress related – jjj

    #64226
    andreao
    Member

    what code? I get the same error.

    #103653

    ok, i managed to install bbpress using the quickinstall item from the cpanel.

    it took just 5 sec. :)

    the bb-config file is set just like i did manually before, so i still wonder why it didnt work previously…

    #98553

    ok, i managed to install bbpress using the quickinstall item from the cpanel.

    it took just 5 sec. :)

    the bb-config file is set just like i did manually before, so i still wonder why it didnt work previously…

    #103651

    i am with hostgator too :)

    thanks! that’s what i did. i dunno why it cant work.

    pff…i thought that was easy to install….

    thinking of going back to the good old PHP BB…

    #98551

    i am with hostgator too :)

    thanks! that’s what i did. i dunno why it cant work.

    pff…i thought that was easy to install….

    thinking of going back to the good old PHP BB…

    #92689
    spinhead
    Member

    I’ll call it a win anyway ;)

    but, really? Administrator can’t manage themes and plugins?

    #92688
    Willabee
    Member

    Zaerl that aint a one-sentence description. ;)

    #103535
    Anonymous User
    Inactive

    Oh – fault. :/ thx for correction

    #98435
    Anonymous User
    Inactive

    Oh – fault. :/ thx for correction

    #103533
    Francesco Bigiarini
    Participant

    <?php if( is_bb_admin() ) { ?> class="highlight"<?php } ?>

    This is wrong Markus. is_bb_admin (which is deprecated, use bb_is_admin) returns true if the page is an administrative page. It’s just a wrapper that returns the value of the BB_IS_ADMIN constant.

    #98433
    Francesco Bigiarini
    Participant

    <?php if( is_bb_admin() ) { ?> class="highlight"<?php } ?>

    This is wrong Markus. is_bb_admin (which is deprecated, use bb_is_admin) returns true if the page is an administrative page. It’s just a wrapper that returns the value of the BB_IS_ADMIN constant.

    #103532
    Pomy
    Participant

    Markus, thanks again and sorry that I didn’t find this solution over bbpress forum before my last post.

    But I think it would be great and easy if it can be achieved with Zaerl’s code??

    I mean we can get this solution without touching front-page.php, topic.php, post.php or other files.

    And it would be also great to highlight multiple authors by their ids which zearl did for topics/forums.

    want something like – $za_highlight_auhors = array(1,8,55,89); ??

    Possible?

    #98432
    Pomy
    Participant

    Markus, thanks again and sorry that I didn’t find this solution over bbpress forum before my last post.

    But I think it would be great and easy if it can be achieved with Zaerl’s code??

    I mean we can get this solution without touching front-page.php, topic.php, post.php or other files.

    And it would be also great to highlight multiple authors by their ids which zearl did for topics/forums.

    want something like – $za_highlight_auhors = array(1,8,55,89); ??

    Possible?

    #103531
    Anonymous User
    Inactive

    For individual classes for author post you can use

    class="highlight_<?php post_author_id();?>"

    Anonther good starting point to search:

    http://phpxref.ftwr.co.uk/bbpress/nav.html?_functions/index.html

    There are always different ways to achieve an objective. It is only a question of whether the target should be achieved easily, quickly or safely.

    :)

    #98431
    Anonymous User
    Inactive

    For individual classes for author post you can use

    class="highlight_<?php post_author_id();?>"

    Anonther good starting point to search:

    http://phpxref.ftwr.co.uk/bbpress/nav.html?_functions/index.html

    There are always different ways to achieve an objective. It is only a question of whether the target should be achieved easily, quickly or safely.

    :)

    #103530
    Anonymous User
    Inactive

    Here is one solution described for all keymasters and admins:

    https://bbpress.org/forums/topic/different-style-for-key-master-and-administrator-replies-1

    For admins you can also do something like this:

    <?php if( is_bb_admin() ) { ?> class="highlight"<?php } ?>

    #98430
    Anonymous User
    Inactive

    Here is one solution described for all keymasters and admins:

    https://bbpress.org/forums/topic/different-style-for-key-master-and-administrator-replies-1

    For admins you can also do something like this:

    <?php if( is_bb_admin() ) { ?> class="highlight"<?php } ?>

    #103528
    Anonymous User
    Inactive

    Hi Zaerl,

    I see – your plugin is a better and bigger way to highlight many topics and forums. :)

    You hang your code to the filter topic_class. The perfect solution.

    @softinfo: You must use <?php bb_forum_class(); ?> in your custom theme.

    #98428
    Anonymous User
    Inactive

    Hi Zaerl,

    I see – your plugin is a better and bigger way to highlight many topics and forums. :)

    You hang your code to the filter topic_class. The perfect solution.

    @softinfo: You must use <?php bb_forum_class(); ?> in your custom theme.

Viewing 25 results - 19,501 through 19,525 (of 32,585 total)
Skip to toolbar