14 events
when toggle format what by license comment
Mar 22 '17 at 15:57 comment added billythekid If you're coming here from craftcommerce.com/docs/payment-gateways the action routes for the payment gateway callbacks that you want to disable csrf for, according to Luke, are actions/commerce/payments/completePayment for all, or actions/commerce/payments/acceptNotification if you use sagepay
Dec 2 '16 at 17:47 history edited Lindsey D CC BY-SA 3.0
`$_SERVER['PATH_INFO']` was null, `$_SERVER['REQUEST_URI']` contained the correct value.
Jul 19 '16 at 3:55 history edited Brad Bell CC BY-SA 3.0
deleted 2 characters in body
Dec 17 '15 at 0:17 comment added Brad Bell @taylor Craft's general.php config file. Update the answer.
Dec 17 '15 at 0:17 history edited Brad Bell CC BY-SA 3.0
added 21 characters in body
Dec 16 '15 at 23:44 comment added taylor When you say "config file", do you mean put that in a plugin's config file, or do you mean in the general.php configuration file for Craft?
Nov 21 '14 at 17:31 comment added Brandon Kelly @MikePierce Actually it’s just a matter of checking $_REQUEST['PATH_INFO'], not $_GET['p']. Just updated the example code.
Nov 21 '14 at 17:31 history edited Brandon Kelly CC BY-SA 3.0
Updated the config setting to refer to PATH_INFO
Nov 21 '14 at 10:48 comment added Mike Pierce @BradBell Of course, sorry about that: craftcms.stackexchange.com/questions/4858/…
Nov 20 '14 at 15:40 comment added Brad Bell Can you post this as a separate new question?
Nov 20 '14 at 14:34 comment added Mike Pierce @BradBell @BrandonKelly I'm trying to do something similar, I have an action that processes Paypal IPN requests, but using {{ actionUrl('plugin/action', {}) }} in my template forces $mustShowScriptName to be set to true in UrlHelper::_getUrl(). This means the global $_GET['p'] is not set, as the URL that is printed includes "index.php" like this http://craft.dev/index.php/actions/plugin/action?param=foo. omitScriptNameInUrls set to true in config seems to have no effect on this. Can you think of what's going wrong?
Nov 4 '14 at 21:29 comment added Matt Stein Thanks Brad (and Brandon)! That'll work just fine for this particular thingamajig.
Nov 4 '14 at 21:04 history edited Brandon Kelly CC BY-SA 3.0
Code example
Nov 4 '14 at 20:21 history answered Brad Bell CC BY-SA 3.0