[Plugin: Shortcode Exec PHP] Maybe the safest way to execute php (2 posts)

  1. houseofstrauss
    Posted 6 years ago #

    On testing this I found that not only is this the easiest way to execute php, but maybe the safest ( on a multi-user blog etc) Reason being only the defined php code can be executed and nothing else. So you can limit the scope of php runnning in your posts.

    In addition, you could make an un-guessable shortcode such as [JjI6GuudQ] that would stop any other poster using it.


  2. M66B
    Posted 6 years ago #

    Thanks for sharing your thoughts, 'houseofstrauss'.

    Using un-guessable shortcodes is a nice idea, but as long as users can edit posts, they can see existing, hard to guess shortcodes. I am thinking about a way to limit the use of shortcodes depending on the user role. Furthermore I will try to easy the editing of shortcodes (ajax, etc). Let me know if you have other ideas and wishes.

Topic Closed

This topic has been closed to new replies.

About this Topic