diff --git a/airtime_mvc/application/forms/StationPodcast.php b/airtime_mvc/application/forms/StationPodcast.php index e4e8ec9b6..1c1954ef2 100644 --- a/airtime_mvc/application/forms/StationPodcast.php +++ b/airtime_mvc/application/forms/StationPodcast.php @@ -6,6 +6,14 @@ class Application_Form_StationPodcast extends Zend_Form { // Station Podcast form $podcastPreferences = new Application_Form_PodcastPreferences(); $this->addSubForm($podcastPreferences, 'preferences_podcast'); + + $csrf_namespace = new Zend_Session_Namespace('csrf_namespace'); + $csrf_element = new Zend_Form_Element_Hidden('csrf'); + $csrf_element->setValue($csrf_namespace->authtoken) + ->setRequired('true') + ->removeDecorator('HtmlTag') + ->removeDecorator('Label'); + $this->addElement($csrf_element); } } \ No newline at end of file diff --git a/airtime_mvc/application/views/scripts/podcast/podcast.phtml b/airtime_mvc/application/views/scripts/podcast/podcast.phtml index 9cb196f9c..d9ff7ebe8 100644 --- a/airtime_mvc/application/views/scripts/podcast/podcast.phtml +++ b/airtime_mvc/application/views/scripts/podcast/podcast.phtml @@ -1,3 +1,5 @@ + +