2006-01-18, 05:31 PM
OK I am curious about security patches on how they work here is a snip
of the IPB patch:
Code:
Index: sources/ipsclass.php
===================================================================
--- sources/ipsclass.php (revision 113)
+++ sources/ipsclass.php (revision 114)
@@ -2481,7 +2481,7 @@
{
foreach( $farray as $id => $stamp )
{
- $this->forum_read[$id] = $stamp;
+ $this->forum_read[ intval($id) ] = intval($stamp);
}
}
}
@@ -3517,7 +3517,31 @@
}
}
Can anyone explain what each line does here is what I think they do:
--- sources/ipsclass.php (revision 113)
Does this live remove the word (revision 113)
+++ sources/ipsclass.php (revision 114)
Does this line add (revision 114)
@@ -2481,7 +2481,7 @@
Not sure here
I am assuming that + at the front means add and - at the front means remove.
anyone want to explain :)