what version of cake are you using?

using cakephp 1.1.x, I built a test app for adding html content, it inserts
with no problem, and no sanitization... hmm..

the difference is that I don't use the built-in scaffolding. that might be
the problem for you

On 6/14/07, Anton <[EMAIL PROTECTED]> wrote:
>
>
> I have looked into sanitize and i dont use it anywhere?
>
> The thing that is really strange is it just redirects and there is no
> error message or way to debug it.
>
> I am not sure what to do!
>
>
>
>
> On Jun 14, 7:48 pm, rtconner <[EMAIL PROTECTED]> wrote:
> > Oh. This might be where the sanitize chapter of the manual comes into
> > play. Likely you'll have to sanitize that one field before saving it.
> > I don't know the details on how to sanitize though, never done it.
> > Maybe someone else can help with that.
> >
> > On Jun 14, 12:35 pm, Anton <[EMAIL PROTECTED]> wrote:
> >
> > > straight out the tutorial on the manual. Its really strange.
> >
> > > I have taken this example form another app that works.
> >
> > > <?php
> >
> > > class PostsController extends AppController{
> >
> > >     var $name = 'Posts';
> > >         var $layout = 'temp';
> > >         var $scaffold;
> >
> > >     function index()
> > >     {
> > >          $this->set('posts', $this->Post->findAll());
> > >     }
> >
> > >     function view($id = null)
> > >     {
> > >                 if($id){
> > >                 $this->Post->id = $id;
> > >                 $this->set('post', $this->Post->read());
> > >                 }else{
> > >                         $this->set('post',
> $this->Post->find('','','modified'));
> > >                 }
> > >     }
> >
> > >     function add()
> > >     {
> > >         if (!empty($this->data))
> > >         {
> > >             if ($this->Post->save($this->data))
> > >             {
> > >                 $this->flash('Your post has been saved.','/posts');
> > >             }
> > >         }
> > >     }
> >
> > >         function delete($id)
> > >         {
> > >             $this->Post->del($id);
> > >             $this->flash('The post with id: '.$id.' has been
> deleted.', '/
> > > posts');
> > >         }
> >
> > >         function edit($id = null)
> > >         {
> > >             if (empty($this->data))
> > >             {
> > >                 $this->Post->id = $id;
> > >                 $this->data = $this->Post->read();
> > >             }
> > >             else
> > >             {
> > >                 if ($this->Post->save($this->data['Post']))
> > >                 {
> > >                     $this->flash('Your post has been
> updated.','/posts');
> > >                 }
> > >             }
> > >         }
> >
> > > }
> >
> > > ?>
> >
> > > On Jun 14, 7:25 pm, rtconner <[EMAIL PROTECTED]> wrote:
> >
> > > > Yeah odd. What does your controller code look like?
> >
> > > > On Jun 14, 12:16 pm, Anton <[EMAIL PROTECTED]> wrote:
> >
> > > > > I know that is a bit vague so i have set up a little excample
> >
> > > > >http://seventhsignrecordings.letimati.com/posts
> >
> > > > > if you put in a post then just add in anything inside < > tags it
> will
> > > > > get redirected to the root
> >
> > > > > If you dont put any tags in it will work
> >
> > > > > as i said i am really struggling with this.
> >
> > > > > On Jun 14, 6:26 pm, Anton Morrison <[EMAIL PROTECTED]>
> wrote:
> >
> > > > > > Hi I am really going off my head here.
> >
> > > > > > I have build an app and everything is working on my localhost
> but
> > > > > > when i up load it and try and put any html tags inside a text
> area
> > > > > > then submit the form it takes me back to the root of the site.
> >
> > > > > > I dont know if its a security think i have set. I have another
> app i
> > > > > > built on the same server and it works with html tags.
> >
> > > > > > If anyone can give me any ideas what could be causing this it
> would
> > > > > > be much appreciated as i said i have been trying to fix this for
> two
> > > > > > days now
> >
> > > > > > anton
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to